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
From class java.lang.Object

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 ()

Returns
int