CaughtException class

An exception that was caught and has an associated stack trace.

Implemented types
Implementers

Constructors

CaughtException(Object exception, StackTrace stackTrace)
Initialize a newly created caught exception to have the given exception and stackTrace.
CaughtException.withMessage(String? message, Object exception, StackTrace stackTrace)
Initialize a newly created caught exception to have the given exception, stackTrace, and message.

Properties

exception Object
The exception that was caught.
final
hashCode int
The hash code for this object.
no setterinherited
message String?
The message describing where/how/why this was caught.
final
rootCaughtException CaughtException
Recursively unwrap this CaughtException if it itself contains a CaughtException.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace
The stack trace associated with the exception.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited