SendException

public final class SendException extends Exception


Firebase message send exception.

This will be passed to onSendError on errors that prevented a message from being sent via send

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

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
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()