Summary: Constants | Methods | Inherited Methods | [Expand All]
public final class

# SendException

extends Exception

java.lang.Object
↳ | java.lang.Throwable
| ↳ | java.lang.Exception
|  | ↳ | com.google.firebase.messaging.SendException

## Class Overview

Firebase message send exception. This will be passed to `onSendError(String, Exception)` on errors that prevented a message from being sent via `send(RemoteMessage)`

## Summary

Constants
int | ERROR_INVALID_PARAMETERS | * Message was sent with invalid parameters.
int | ERROR_SIZE | * Message exceeded the maximum payload size.
int | ERROR_TOO_MANY_MESSAGES | * App has too many pending messages so this one was dropped.
int | ERROR_TTL_EXCEEDED | * Message time to live (TTL) was exceeded before the message could be sent.
int | ERROR_UNKNOWN | * Unknown error.

Public Methods
int | getErrorCode()

[Expand] Inherited Methods
From class java.lang.Throwable
final void | addSuppressed(Throwable arg0)
Throwable | fillInStackTrace()
Throwable | getCause()
String | getLocalizedMessage()
String | getMessage()
StackTraceElement[] | getStackTrace()
final Throwable[] | getSuppressed()
Throwable | initCause(Throwable arg0)
void | printStackTrace()
void | printStackTrace(PrintWriter arg0)
void | printStackTrace(PrintStream arg0)
void | setStackTrace(StackTraceElement[] arg0)
String | toString()
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Constants

#### public static final int ERROR_INVALID_PARAMETERS

* Message was sent with invalid parameters.

Constant Value: 1 (0x00000001)

#### public static final int ERROR_SIZE

* Message exceeded the maximum payload size.

Constant Value: 2 (0x00000002)

#### public static final int ERROR_TOO_MANY_MESSAGES

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

Constant Value: 4 (0x00000004)

#### public static final int ERROR_TTL_EXCEEDED

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

Constant Value: 3 (0x00000003)

#### public static final int ERROR_UNKNOWN

* Unknown error.

Constant Value: 0 (0x00000000)

## Public Methods

#### public int getErrorCode ()