DbException class
A generic exception representing an error when accessing the realtime database
This error is thrown everywhere in the library, where the realtime database is beeing accessed. It wrapps the HTTP-Errors that can happen when using the REST-API, including the HTTP-Status code.
- Implemented types
- Annotations
-
- @freezed
Constructors
- DbException({@Default(400) int statusCode, String? error})
-
Default constructor
constfactory
Properties
-
copyWith
→ $DbExceptionCopyWith<
DbException> -
no setterinherited
- error → String?
-
An optional error message, if the firebase servers provided one.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEventStreamCanceled → bool
-
Checks if this error is the virtual "event stream canceled" error event
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
The HTTP status code returned by the request
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited