Firebase. FirebaseException
Exception thrown for any Task exception.
Summary
Each API has different error codes, so the error code should be looked up relative to the API that produced the Task.
Inheritance
Inherits from: ExceptionConstructors and Destructors | |
|---|---|
FirebaseException()Initializes a newFirebaseException. | |
FirebaseException(int errorCode)Initializes a newFirebaseException, with the given error code. | |
FirebaseException(int errorCode, string message)Initializes a newFirebaseException, with the given error code and message. | |
FirebaseException(int errorCode, string message, System.Exception inner)Initializes a newFirebaseException, with the given error code, message, and a reference to the inner exception. |
Properties | |
|---|---|
ErrorCode | intReturns the API-defined non-zero error code. |
Properties
ErrorCode
intErrorCode
Returns the API-defined non-zero error code.
If the error code is 0, the error is with the Task itself, and not the API. See the exception message for more detail.
Public functions
FirebaseException
FirebaseException(interrorCode)
Initializes a newFirebaseException, with the given error code.
FirebaseException
FirebaseException(interrorCode,stringmessage)
Initializes a newFirebaseException, with the given error code and message.
FirebaseException
FirebaseException(interrorCode,stringmessage,System.Exceptioninner)
Initializes a newFirebaseException, with the given error code, message, and a reference to the inner exception.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-06-17 UTC.