Fix documentation for Task.throws

Small documentation changes, fixes #1969