Base class for all errors in the app.
Constructors
- BaseError({required String message, StackTrace? stackTrace})
-
Base class for all errors in the app.
const
- BaseError.fromApiException(ApiException exception)
-
Converts ApiException to BaseError
factory
- BaseError.fromError(Object error, StackTrace stackTrace)
-
Converts Object error to BaseError
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Error message
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
Stack trace
final
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