No way to re-throw errors with a stack trace #3974
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
closed-duplicate
Closed in favor of an existing report
When working with asynchronous code, and Futures in particular, you often end up with an exception object and its stack trace outside of the catch block where the exception was originally caught. Currently, there's no way to throw that exception so that when it's caught, the catcher sees the original stack trace rather than the trace of where the exception is re-thrown.
This is one of several issues that makes it extremely difficult to debug asynchronous code in Dart.
The text was updated successfully, but these errors were encountered: