Error class abstract
An error description.
- Implemented types
Constructors
- Error([void b(ErrorBuilder)?])
-
Creates a new Error object using the builder pattern.
factory
-
Error.fromJson(Map<
String, dynamic> json) -
Creates a new object from the given
json
data.factory
Properties
- file → String?
-
The file in which the exception was thrown.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- line → int?
-
The line where the exception is thrown.
no setterinherited
- msg → String?
-
The error message.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rebuild(
dynamic updates(ErrorBuilder)) → Error -
Rebuilds the instance.
inherited
-
toBuilder(
) → ErrorBuilder -
Converts the instance to a builder
B
.inherited -
toJson(
) → Map< String, dynamic> - Parses this object into a json like map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
serializer
→ Serializer<
Error> -
Serializer for Error.
no setter