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
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