Implements task.throws.  Closes #1682