FcmError
in package
An error with specific Google Firebase information.
Tags
Table of Contents
Constants
- ERROR_INVALID_ARGUMENT = 'INVALID_ARGUMENT'
- HTTP status 400 For example wrong format message or token.
- ERROR_NOT_FOUND = 'NOT_FOUND'
- HTTP status 404 Unregistered token. For example when user removes the app.
- ERROR_QUOTA_EXCEEDED = 'QUOTA_EXCEEDED'
- HTTP status 429 For example when the sending rate of messages is too high.
- ERROR_THIRD_PARTY_AUTH_ERROR = 'THIRD_PARTY_AUTH_ERROR'
- HTTP status 401 APNs certificate or web push auth key was invalid or missing.
- ERROR_UNAUTHENTICATED = 'UNAUTHENTICATED'
- HTTP status 401 Invalid access token, for example when it is expired.
- ERROR_UNAVAILABLE = 'UNAVAILABLE'
- HTTP status 503 The server is overloaded.
- ERROR_UNREGISTERED = 'UNREGISTERED'
- HTTP status 404 Unregistered token. For example when user removes the app.
Properties
Methods
- __construct() : mixed
Constants
ERROR_INVALID_ARGUMENT
HTTP status 400 For example wrong format message or token.
public
mixed
ERROR_INVALID_ARGUMENT
= 'INVALID_ARGUMENT'
ERROR_NOT_FOUND
HTTP status 404 Unregistered token. For example when user removes the app.
public
mixed
ERROR_NOT_FOUND
= 'NOT_FOUND'
ERROR_QUOTA_EXCEEDED
HTTP status 429 For example when the sending rate of messages is too high.
public
mixed
ERROR_QUOTA_EXCEEDED
= 'QUOTA_EXCEEDED'
ERROR_THIRD_PARTY_AUTH_ERROR
HTTP status 401 APNs certificate or web push auth key was invalid or missing.
public
mixed
ERROR_THIRD_PARTY_AUTH_ERROR
= 'THIRD_PARTY_AUTH_ERROR'
ERROR_UNAUTHENTICATED
HTTP status 401 Invalid access token, for example when it is expired.
public
mixed
ERROR_UNAUTHENTICATED
= 'UNAUTHENTICATED'
ERROR_UNAVAILABLE
HTTP status 503 The server is overloaded.
public
mixed
ERROR_UNAVAILABLE
= 'UNAVAILABLE'
ERROR_UNREGISTERED
HTTP status 404 Unregistered token. For example when user removes the app.
public
mixed
ERROR_UNREGISTERED
= 'UNREGISTERED'
Properties
$code read-only
public
int
$code
$content read-only
public
string
$content
$error read-only
public
string
$error
$message read-only
public
string
$message
Methods
__construct()
public
__construct(int $code, string $error, string $message, string $content) : mixed
Parameters
- $code : int
-
The error code (will be the same as the HTTP status code).
- $error : string
-
The error name.
- $message : string
-
A description of the error.
- $content : string
-
The raw content of the Google API response.