ErrorDescription class Null safety

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.

See ApplicationException See ApplicationExceptionFactory

Constructors

ErrorDescription()

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
hashCode int
The hash code for this object. [...]
read-only, inherited
message String?
A human-readable error description (usually written in English)
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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

Methods

fromJson(Map<String, dynamic> json) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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