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.

See ApplicationException See ApplicationExceptionFactory

Constructors

ErrorDescription()

Properties

category String?
Standard error category
getter/setter pair
cause String?
Original error wrapped by this exception
getter/setter pair
code String?
A unique error code
getter/setter pair
correlation_id String?
A unique transaction id to trace execution throug call chain
getter/setter pair
details StringValueMap?
A map with additional details that can be used to restore error description in other languages
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
message String?
A human-readable error description (usually written in English)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stack_trace String?
Stack trace of the exception
getter/setter pair
status int?
HTTP status code associated with this error type
getter/setter pair
type String?
Data type of the original error
getter/setter pair

Methods

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