public class

FirebaseException

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.google.firebase.FirebaseException
Known Direct Subclasses

Class Overview

Base class for all Firebase exceptions.

Summary

Public Constructors
FirebaseException(ErrorCode errorCode, String message, Throwable cause, IncomingHttpResponse httpResponse)
FirebaseException(ErrorCode errorCode, String message, Throwable cause)
Public Methods
final ErrorCode getErrorCode()
Returns the platform-wide error code associated with this exception.
final IncomingHttpResponse getHttpResponse()
Returns the HTTP response that resulted in this exception.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public FirebaseException (ErrorCode errorCode, String message, Throwable cause, IncomingHttpResponse httpResponse)

public FirebaseException (ErrorCode errorCode, String message, Throwable cause)

Public Methods

public final ErrorCode getErrorCode ()

Returns the platform-wide error code associated with this exception.

Returns
  • A Firebase error code.

public final IncomingHttpResponse getHttpResponse ()

Returns the HTTP response that resulted in this exception. If the exception was not caused by an HTTP error response, returns null.

Returns
  • An HTTP response or null.