EngineException class
A failure the engine server itself reported: a non-2xx response carrying
the { error, code? } envelope.
Distinct from a transport failure (no response at all), which propagates as
the underlying DioException so callers can tell "the server said no" from
"the outcome is unknown". engineCall draws that line.
Dispatch on code, never on message: the message is display copy the server may reword at any time, while the code is a stable machine value.
Constructors
- EngineException(String message, {ErrorCode? code})
-
const
Properties
- code → ErrorCode?
-
The stable machine code, or null for failures that carry none: request
validation and unexpected 500s.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
The server's human-readable text. Used as display copy only when code is
null; a coded failure is phrased by
humanizeinstead.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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited