CaughtException class Null safety
An exception that was caught and has an associated stack trace.
- CaughtException(Object exception, StackTrace stackTrace)
Initialize a newly created caught exception to have the given
- CaughtException.withMessage(String? message, Object exception, StackTrace stackTrace)
- Initialize a newly created caught exception to have the given exception, stackTrace, and message.
- exception → Object
The exception that was caught.
- hashCode → int
The hash code for this object. [...]
- message → String?
The message describing where/how/why this was caught.
- rootCaughtException → CaughtException
Recursively unwrap this CaughtException if it itself contains a
- runtimeType → Type
A representation of the runtime type of the object.
- stackTrace ↔ StackTrace
The stack trace associated with the exception.
read / write