Error codes are strings using the following format: "service/string-code".
Some examples include "app/no-app" and "auth/user-not-found".
While the message for a given error can change, the code will remain the same
between backward-compatible versions of the Firebase SDK.
message
message:string
An explanatory message for the error that just occurred.
This message is designed to be helpful to you, the developer. Because
it generally does not convey meaningful information to end users,
this message should not be displayed in your application.
name
name:"FirebaseError"
The name of the class of errors, which is "FirebaseError".
Optional stack
stack:string
A string value containing the execution backtrace when the error originally
occurred. This may not always be available.
When it is available, this information can be sent to
Firebase Support to help
explain the cause of an error.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-07-27 UTC."],[],[],null,["- [firebase](/docs/reference/node/firebase).\n- FirebaseError \n`FirebaseError` is a subclass of the standard JavaScript `Error` object. In\naddition to a message string and stack trace, it contains a string code.\n\nIndex\n\nProperties\n\n- [code](/docs/reference/node/firebase.FirebaseError#code)\n- [message](/docs/reference/node/firebase.FirebaseError#message)\n- [name](/docs/reference/node/firebase.FirebaseError#name)\n- [stack](/docs/reference/node/firebase.FirebaseError#stack)\n\nProperties\n\ncode \ncode: string \nError codes are strings using the following format: `\"service/string-code\"`.\nSome examples include `\"app/no-app\"` and `\"auth/user-not-found\"`.\n\nWhile the message for a given error can change, the code will remain the same\nbetween backward-compatible versions of the Firebase SDK.\n\nmessage \nmessage: string \nAn explanatory message for the error that just occurred.\n\nThis message is designed to be helpful to you, the developer. Because\nit generally does not convey meaningful information to end users,\nthis message should not be displayed in your application.\n\nname \nname: \"FirebaseError\" \nThe name of the class of errors, which is `\"FirebaseError\"`.\n\nOptional stack \nstack: string \nA string value containing the execution backtrace when the error originally\noccurred. This may not always be available.\n\nWhen it is available, this information can be sent to\n[Firebase Support](https://firebase.google.com/support/) to help\nexplain the cause of an error."]]
FirebaseError
is a subclass of the standard JavaScriptError
object. In addition to a message string and stack trace, it contains a string code.