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
synchronized final void |
addSuppressed(Throwable arg0)
|
synchronized Throwable |
fillInStackTrace()
|
synchronized Throwable |
getCause()
|
String |
getLocalizedMessage()
|
String |
getMessage()
|
StackTraceElement[] |
getStackTrace()
|
synchronized final Throwable[] |
getSuppressed()
|
synchronized Throwable |
initCause(Throwable arg0)
|
void |
printStackTrace()
|
void |
printStackTrace(PrintWriter arg0)
|
void |
printStackTrace(PrintStream arg0)
|
void |
setStackTrace(StackTraceElement[] arg0)
|
String |
toString()
|
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()
|
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.