RemoteConfigException class

Error thrown by fetch operations.

Implemented types

Constructors

RemoteConfigException({required String code, required String message, int? statusCode, DateTime? throttleEndTime, Object? cause})
Creates an exception.
const

Properties

cause → Object?
The underlying error, if any.
final
code → String
Machine readable error code, one of the code* constants.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
Human readable description.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statusCode → int?
HTTP status code, when the error came from an HTTP response.
final
throttleEndTime → DateTime?
For codeThrottled: when fetching may be retried.
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

Constants

codeInvalidResponse → const String
The Worker responded with a body that is not a valid config payload.
codeNetworkError → const String
The request failed at the network layer.
codeServerError → const String
The Worker responded with an unexpected HTTP status.
codeThrottled → const String
Fetching is rate limited (HTTP 429). See throttleEndTime.
codeTimeout → const String
The request did not complete within fetchTimeout.
codeUnauthorized → const String
The Worker rejected the client key (HTTP 401/403).