SendException

public final classSendException extendsException


Firebase message send exception.

This will be passed toonSendError on errors that prevented a message from being sent viasend

Summary

Constants

static final int

Message was sent with invalid parameters.

static final int

Message exceeded the maximum payload size.

static final int

App has too many pending messages so this one was dropped.

static final int

Message time to live (TTL) was exceeded before the message could be sent.

static final int

Unknown error.

Public fields

final int

Public methods

int

Inherited methods

Fromjava.lang.Throwable
synchronized final void
synchronizedThrowable
synchronizedThrowable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronizedThrowable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Constants

ERROR_INVALID_PARAMETERS

public static final int ERROR_INVALID_PARAMETERS = 1

Message was sent with invalid parameters.

ERROR_SIZE

public static final int ERROR_SIZE = 2

Message exceeded the maximum payload size.

ERROR_TOO_MANY_MESSAGES

public static final int ERROR_TOO_MANY_MESSAGES = 4

App has too many pending messages so this one was dropped.

ERROR_TTL_EXCEEDED

public static final int ERROR_TTL_EXCEEDED = 3

Message time to live (TTL) was exceeded before the message could be sent.

ERROR_UNKNOWN

public static final int ERROR_UNKNOWN = 0

Unknown error.

Public fields

errorCode

public final int errorCode

Public methods

getErrorCode

public int getErrorCode()

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.