SentryException class
The Exception Interface specifies an exception or error that occurred in a program.
Constructors
-
SentryException.new({required String? type, required String? value, String? module, SentryStackTrace? stackTrace, Mechanism? mechanism, int? threadId, dynamic throwable, Map<
String, dynamic> ? unknown}) -
SentryException.fromJson(Map<
String, dynamic> data) -
Deserializes a SentryException from JSON Map.
factory
Properties
-
exceptions
↔ List<
SentryException> ? -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- mechanism ↔ Mechanism?
-
An optional object describing the Mechanism that created this exception
getter/setter pair
- module ↔ String?
-
The optional module, or package which the exception type lives in.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace ↔ SentryStackTrace?
-
An optional stack trace object
getter/setter pair
- threadId ↔ int?
-
Represents a SentryThread.id.
getter/setter pair
- throwable ↔ dynamic
-
getter/setter pair
- type ↔ String?
-
Required. The type of exception
getter/setter pair
-
unknown
↔ Map<
String, dynamic> ? -
getter/setter pair
- value ↔ String?
-
Required. The value of the exception
getter/setter pair
Methods
-
addException(
SentryException exception) → void -
copyWith(
{String? type, String? value, String? module, SentryStackTrace? stackTrace, Mechanism? mechanism, int? threadId, dynamic throwable}) → SentryException -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Produces a Map that can be serialized to JSON.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited