FakeProblem class final

A rejection of a write or read, answered as an RFC 9457 problem (06 5).

Implemented types

Constructors

FakeProblem(int status, String code, {JsonMap? current, String? reason, Duration? retryAfter, List<JsonMap>? errors, JsonMap extra = const {}})
Creates the problem with status and code; current is the current object of a conflict, reason a refinement, retryAfter the wait of 429 and 503.
const

Properties

code → String
The problem code of x-problem-codes.
final
current → JsonMap?
The current object (412 version_conflict).
final
errors → List<JsonMap>?
Field errors of 400 validation_failed.
final
extra → JsonMap
Further members of the problem body, for example hint or attempts_remaining.
final
hashCode → int
The hash code for this object.
no setterinherited
reason → String?
The refinement of the code.
final
retryAfter → Duration?
The wait of 429 and 503.
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.
override

Operators

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