ErrorKind enum
Wie ein Fehler fuer die Einordnung heisst (kind im Vertrag):
- api: HTTP 200,
status: 'error', der Satz des Backends woertlich (KasseneckApiError); - plainText: schon fuer den Bildschirm geschrieben, sein eigener Text;
- timeout: die Frist lief ab, die Anfrage war draussen (KasseneckHttpError.reasonTimeout);
- network: keine Verbindung oder abgerissen (KasseneckHttpError.reasonNetwork);
- unexpected: der Server hat geantwortet, aber nicht wie zugesagt
(HTML, 500, fehlende Huelle; Platzhalter
{status}= HTTP-Code); - other: alles Uebrige ist technisch, es gilt der Ersatzsatz des Vorgangs.
Values
- api → const ErrorKind
-
const ErrorKind('api') - plainText → const ErrorKind
-
const ErrorKind('plain_text') - timeout → const ErrorKind
-
const ErrorKind('timeout') - network → const ErrorKind
-
const ErrorKind('network') - unexpected → const ErrorKind
-
const ErrorKind('unexpected') - other → const ErrorKind
-
const ErrorKind('other')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wire → String
-
Der Wert im Vertrag.
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