MessagingClientErrorCode enum

Inheritance

Constructors

MessagingClientErrorCode(String message, {required String? code})
const
MessagingClientErrorCode.fromCode(String? code)
factory

Values

internal → const MessagingClientErrorCode
const MessagingClientErrorCode(code: 'INTERNAL', 'Internal server error.')
invalidArgument → const MessagingClientErrorCode
const MessagingClientErrorCode(code: 'INVALID_ARGUMENT', 'One or more arguments specified in the request were invalid.')
quotaExceeded → const MessagingClientErrorCode
const MessagingClientErrorCode(code: 'QUOTA_EXCEEDED', 'Sending limit exceeded for the message target.')
senderIdMismatch → const MessagingClientErrorCode
const MessagingClientErrorCode(code: 'SENDER_ID_MISMATCH', 'The authenticated sender ID is different from the sender ID for the registration token.')
thirdPartyAuthError → const MessagingClientErrorCode
const MessagingClientErrorCode(code: 'THIRD_PARTY_AUTH_ERROR', 'APNs certificate or web push auth key was invalid or missing.')
unavailable → const MessagingClientErrorCode
const MessagingClientErrorCode(code: 'UNAVAILABLE', 'Cloud Messaging service is temporarily unavailable.')
unregistered → const MessagingClientErrorCode
const MessagingClientErrorCode(code: 'UNREGISTERED', 'App instance was unregistered from FCM. ' 'This usually means that the token used is no longer valid and a new one must be use…
authenticationError → const MessagingClientErrorCode
const MessagingClientErrorCode(code: null, 'An error occurred when trying to authenticate to the FCM servers. ' 'Make sure the credential used to authenticate this SDK has the proper permi…
internalError → const MessagingClientErrorCode
const MessagingClientErrorCode(code: null, 'An internal error occurred when trying to send the message to the FCM servers. ' 'Please try again later.')
invalidOptions → const MessagingClientErrorCode
const MessagingClientErrorCode(code: null, 'Invalid message options were provided.')
invalidPayload → const MessagingClientErrorCode
const MessagingClientErrorCode(code: null, 'Invalid message payload provided.')
serverUnavailable → const MessagingClientErrorCode
const MessagingClientErrorCode(code: null, 'The FCM servers are temporarily unavailable. ' 'Please try again later.')
unknown → const MessagingClientErrorCode
const MessagingClientErrorCode(code: 'UNKNOWN_ERROR', 'Unknown error occurred.')

Properties

code String?
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
message String
final
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<MessagingClientErrorCode>
A constant List of the values in this enum, in order of their declaration.