ErrorDescription class

Where an error payload sits inside a failed response body.

key is a dotted JsonPath, so an error nested several levels down is reachable: ErrorDescription(key: 'response.error.detail').

The default is the empty path, meaning the body itself is the error — the common shape. An explicit key is resolved strictly, so a mismatch reports null and logs rather than silently falling back to the whole body.

Constructors

ErrorDescription({String key = ''})

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
final
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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited