CaptureException class
Manually captures and reports an exception.
Use this event to explicitly report errors that are caught in try-catch blocks but should still be logged to crash reporting services.
Example:
try {
await riskyOperation();
} catch (error) {
errorHandlingBloc.captureException(error);
}
- Inheritance
-
- Object
- ErrorHandlingEvent
- CaptureException
Constructors
- CaptureException(dynamic error)
- Creates a CaptureException event with the given error.
Properties
- error → dynamic
-
The exception or error to report to crash analytics services
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited