Gonzalo Chumillas
2016-08-09 17:27:58 UTC
I would like to rethrow a new exception preserving the original exception.
For example
try {
buggyFunction();
} catch (exception) {
throw new MyCustomException(exception);
}
This way I can provide more specific information, without losing the
original exception (the cause). In the same way that this guy explains:
http://programmers.stackexchange.com/a/278038/173231
Is that possible?
Thanks.
For example
try {
buggyFunction();
} catch (exception) {
throw new MyCustomException(exception);
}
This way I can provide more specific information, without losing the
original exception (the cause). In the same way that this guy explains:
http://programmers.stackexchange.com/a/278038/173231
Is that possible?
Thanks.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.