DecisionFailure class final
The failure variant of DecisionResult: structured, actionable, never thrown.
- Inheritance
-
- Object
- DecisionResult
- DecisionFailure
Constructors
- DecisionFailure({int? statusCode, int? code, required String message, bool validation = false})
-
const
Properties
- code → int?
-
The provider's error code, when parsed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSuccess → bool
-
True on DecisionSuccess.
no setterinherited
- message → String
-
The human-readable failure reason (provider message or local
validation text). Never contains the API key.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int?
-
The HTTP status of the failing call, when it reached the wire.
final
- validation → bool
-
True when the failure is local request validation (the call never
hit the network).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
The structured JSON form surfaced to the model/user.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited