FirebaseFailureKind enum
Classification of a firebase --json failure. Used by
_runFirebaseWithRecovery to decide whether to auto-retry, auto-enable
the Firebase Management API, or surface the failure to the caller.
Public so tests can assert against specific failure kinds returned by FirebaseService.classifyFirebaseErrorForTest.
Values
- serviceDisabled → const FirebaseFailureKind
-
firebase.googleapis.comis not enabled on the project. Auto-fix:gcloud services enable firebase.googleapis.com+ wait + retry. - permissionDenied → const FirebaseFailureKind
-
Caller is missing IAM roles. The IAM gate handles this in step 5.4 — surfacing here means the gate didn't catch it, so we fail.
- transient → const FirebaseFailureKind
-
5xx, deadline-exceeded, ECONNRESET, propagation lag — exponential backoff retry resolves these.
- unknown → const FirebaseFailureKind
-
Anything else. The caller should surface the raw error verbatim.
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<
FirebaseFailureKind> - A constant List of the values in this enum, in order of their declaration.