NativeException class
Contains information about a native SDK error if it occurred while executing API calls.
- Annotations
-
- @JsonSerializable(explicitToJson: true, includeIfNull: true)
Constructors
- NativeException.new({String error = "", Throwable? throwable})
- NativeException.fromApiErrorResponse(ApiErrorResponse apiError)
-
factory
-
NativeException.fromJson(Map<
String, dynamic> json) -
factory
Properties
- error ↔ String
-
Error details.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- throwable ↔ Throwable?
-
Holds additional information regarding the exception if this was created from a Throwable returned by the native SDK.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromThrowable(
Throwable? throwable) → NativeException