Stay organized with collections
Save and categorize content based on your preferences.
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: Exception
Properties
|
ErrorCode
|
int
Returns the API-defined non-zero error code.
|
Properties
ErrorCode
int ErrorCode
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()
FirebaseException
FirebaseException(
int errorCode
)
FirebaseException
FirebaseException(
int errorCode,
string message
)
FirebaseException
FirebaseException(
int errorCode,
string message,
System.Exception inner
)
Initializes a new FirebaseException, 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 the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-06-17 UTC.
[null,null,["Last updated 2021-06-17 UTC."],[],[],null,["# Firebase.FirebaseException Class Reference\n\nFirebase.FirebaseException\n==========================\n\nException thrown for any Task exception.\n\nSummary\n-------\n\nEach API has different error codes, so the error code should be looked up relative to the API that produced the Task.\n\n### Inheritance\n\nInherits from: Exception\n\n| ### Constructors and Destructors ||\n|---|---|\n| [FirebaseException](#class_firebase_1_1_firebase_exception_1a133dadb89a50f9d091dbf38f3596efd2)`()` Initializes a new [FirebaseException](/docs/reference/unity/class/firebase/firebase-exception#class_firebase_1_1_firebase_exception). ||\n| [FirebaseException](#class_firebase_1_1_firebase_exception_1aeaae043e5d6a3ac369e9095a2cfc692e)`(int errorCode)` Initializes a new [FirebaseException](/docs/reference/unity/class/firebase/firebase-exception#class_firebase_1_1_firebase_exception), with the given error code. ||\n| [FirebaseException](#class_firebase_1_1_firebase_exception_1a99bb3dbcbc7a1895512df57dd9a83f61)`(int errorCode, string message)` Initializes a new [FirebaseException](/docs/reference/unity/class/firebase/firebase-exception#class_firebase_1_1_firebase_exception), with the given error code and message. ||\n| [FirebaseException](#class_firebase_1_1_firebase_exception_1a126a1e1dec452f4694d3c494134b9d7a)`(int errorCode, string message, System.Exception inner)` Initializes a new [FirebaseException](/docs/reference/unity/class/firebase/firebase-exception#class_firebase_1_1_firebase_exception), with the given error code, message, and a reference to the inner exception. ||\n\n| ### Properties ||\n|----------------------------------------------------------------------------------------|----------------------------------------------------|\n| [ErrorCode](#class_firebase_1_1_firebase_exception_1a2565fe13aaa67e51e13491c7ba14942d) | `int` Returns the API-defined non-zero error code. |\n\nProperties\n----------\n\n### ErrorCode\n\n```c#\nint ErrorCode\n``` \nReturns the API-defined non-zero error code.\n\nIf the error code is 0, the error is with the Task itself, and not the API. See the exception message for more detail.\n\nPublic functions\n----------------\n\n### FirebaseException\n\n```c#\n FirebaseException()\n``` \nInitializes a new [FirebaseException](/docs/reference/unity/class/firebase/firebase-exception#class_firebase_1_1_firebase_exception). \n\n### FirebaseException\n\n```c#\n FirebaseException(\n int errorCode\n)\n``` \nInitializes a new [FirebaseException](/docs/reference/unity/class/firebase/firebase-exception#class_firebase_1_1_firebase_exception), with the given error code. \n\n### FirebaseException\n\n```c#\n FirebaseException(\n int errorCode,\n string message\n)\n``` \nInitializes a new [FirebaseException](/docs/reference/unity/class/firebase/firebase-exception#class_firebase_1_1_firebase_exception), with the given error code and message. \n\n### FirebaseException\n\n```c#\n FirebaseException(\n int errorCode,\n string message,\n System.Exception inner\n)\n``` \nInitializes a new [FirebaseException](/docs/reference/unity/class/firebase/firebase-exception#class_firebase_1_1_firebase_exception), with the given error code, message, and a reference to the inner exception."]]