public class
FirebaseException
extends Exception
Known Direct Subclasses |
Base class for all Firebase exceptions.
Public Constructor Summary
FirebaseException(ErrorCode errorCode, String message, Throwable cause, IncomingHttpResponse httpResponse)
|
|
FirebaseException(ErrorCode errorCode, String message, Throwable cause)
|
Public Method Summary
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.
|
Inherited Method Summary
Public Constructors
public FirebaseException (ErrorCode errorCode, String message, Throwable cause, IncomingHttpResponse httpResponse)
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.