AnswerFault class final

Answer with status and a problem with code (and reason) instead of handling the request (nothing is stored); retryAfter sets Retry-After.

Inheritance

Constructors

AnswerFault(String? operationId, int status, String code, Duration? retryAfter, {String? reason})
Creates the fault.
const

Properties

code → String
The problem code.
final
hashCode → int
The hash code for this object.
no setterinherited
operationId → String?
The operation the fault applies to, or null for any.
finalinherited
reason → String?
The reason member, if any (for example part_conflict of a 409 conflict).
final
retryAfter → Duration?
The Retry-After wait, if any.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → int
The HTTP status.
final

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