HostErrorCategory enum
Structured error categories a host adapter maps provider failures into.
Raw exceptions and provider payloads never reach widgets; only a category and an optional message the host has decided is safe to show.
Values
- network → const HostErrorCategory
-
The request may not have reached the server.
- timeout → const HostErrorCategory
-
The request was sent but no answer arrived; its outcome is unknown.
- validation → const HostErrorCategory
- sessionExpired → const HostErrorCategory
- notAllowed → const HostErrorCategory
- conflict → const HostErrorCategory
- invalidResponse → const HostErrorCategory
-
The server answered with data the adapter could not trust.
- unknown → const HostErrorCategory
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
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
Constants
-
values
→ const List<
HostErrorCategory> - A constant List of the values in this enum, in order of their declaration.