-
The docs include a remark saying
When the documentation says rethrown, does that imply that initial exception was caught? I would appreciate some additional context around why this behaves this way and what the intended patterns for dealing with exceptions in the async delegate methods are. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This means that you can catch the exception via its original type, as thrown by the delegate itself. |
Beta Was this translation helpful? Give feedback.
This means that you can catch the exception via its original type, as thrown by the delegate itself.
The fact that JTF.Run internally catches and rethrows the exception is an implementation detail and something you can ignore. You can think of it as simply allowing the exception thrown from the delegate to propagate to the JTF.Run caller.