CausedByException<E extends Exception> extension
Allow exception chaining. example:
try {
...
} on Exception (e, stackTrace) {
throw
}
- on
-
- E
Methods
-
causedBy(
Object chainedException, StackTrace stackTrace) → E -
Available on E, provided by the CausedByException extension
Marksthisexception as being caused bychainedException. -
getCausedByException(
) → ErrorStack? -
Available on E, provided by the CausedByException extension
Retrieves the caused exception forthisexception. -
toStringWithCause(
) → String -
Available on E, provided by the CausedByException extension
calls toString appended by the caused exception, if any.