ErrorDescription class
Serializeable error description. It is use to pass information about errors between microservices implemented in different languages. On the receiving side ErrorDescription is used to recreate exception object close to its original type without missing additional details.
Constructors
Properties
- category ↔ String
-
Standard error category
read / write
- cause ↔ String
-
Original error wrapped by this exception
read / write
- code ↔ String
-
A unique error code
read / write
- correlation_id ↔ String
-
A unique transaction id to trace execution throug call chain
read / write
- details ↔ StringValueMap
-
A map with additional details that can be used to restore error description in other languages
read / write
- message ↔ String
-
A human-readable error description (usually written in English)
read / write
- stack_trace ↔ String
-
Stack trace of the exception
read / write
- status ↔ int
-
HTTP status code associated with this error type
read / write
- type ↔ String
-
Data type of the original error
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
fromJson(
Map< String, dynamic> json) → void -
toJson(
) → Map< String, dynamic> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited