FlutterErrorException class
Exception type that wraps a FlutterErrorDetails produced by the Flutter framework (build/layout/paint, etc.).
Use this when wiring global handlers (e.g., in BugReportBindings) to
transform framework errors into your domain exception type.
- Inheritance
-
- Object
- BaseException
- FlutterErrorException
Constructors
- FlutterErrorException(FlutterErrorDetails details, {Severity? severityOverride, String? userMessage, String? devMessage})
- Wraps FlutterErrorDetails so it can flow through the reporting pipeline.
Properties
- cause → Object?
-
Original underlying error, if any.
finalinherited
- contextNode → DiagnosticsNode?
-
Convenience accessor for the framework context node (may be null).
no setter
- details → FlutterErrorDetails
-
The original Flutter framework error details.
final
- devMessage → String
-
Developer-friendly details, safe for logs and tools.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isReportable → bool
-
Whether this exception should be reported automatically.
finalinherited
- library → String
-
Convenience accessor for the source library, if provided.
no setter
-
metadata
→ Map<
String, dynamic> -
Additional diagnostic data related to this exception.
finalinherited
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → Severity
-
How serious this exception is.
finalinherited
- stack → StackTrace?
-
Capture location. Defaults to StackTrace.current when not provided.
finalinherited
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.no setterinherited - userMessage → String
-
Human-friendly text appropriate for end-users.
finalinherited
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