ErrorEvent class
Implementation of ErrorEvent extends BaseEvent
Represents an error event with additional details:
- exception: The error or exception object that was thrown or caught. Can be any type (e.g., Exception, Error, String) and provides context about what went wrong.
- stackTrace: The stack trace at the moment the exception occurred. Useful for debugging, as it shows the sequence of function calls leading to the error.
- Inheritance
- Available extensions
Constructors
-
ErrorEvent({required String message, Severity severity = Severity.info, Map<
String, dynamic> ? metadata, String? tag, List<Map< ? breadcrumbs, DateTime? timestamp, Object? exception, StackTrace? stackTrace})String, dynamic> > -
ErrorEvent.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
getter/setter pairinherited
- exception → Object?
-
The error or exception object associated with this event.
final
- fingerPrint ↔ String
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
finalinherited
-
metadata
↔ Map<
String, dynamic> ? -
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → Severity
-
finalinherited
- stackTrace → StackTrace?
-
The stack trace captured when the exception occurred.
final
- tag → String?
-
finalinherited
- timestamp ↔ DateTime
-
getter/setter pairinherited
Methods
-
calculateFingerprint(
) → void -
override
-
getContentToString(
) → String -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
preloadEvent(
) → void -
Available on Event, provided by the PreloadExtensions extension
-
prettyPrinter(
) → String -
override
-
shouldReport(
int index) → bool -
inherited
-
toJson(
) → String -
inherited
-
toMap(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited