FunctionsError class

An error returned by the Firebase Functions client SDK.

SeeFunctionsErrorCode for full documentation of codes.

Signature:

exportdeclareclassFunctionsErrorextendsFirebaseError

Extends:FirebaseError

Constructors

ConstructorModifiersDescription
(constructor)(code, message, details)Constructs a new instance of theFunctionsError class.

Properties

PropertyModifiersTypeDescription
detailsunknownAdditional details to be converted to JSON and included in the error response.

FunctionsError.(constructor)

Constructs a new instance of theFunctionsError class.

Signature:

constructor(code:FunctionsErrorCode,message?:string,details?:unknown);

Parameters

ParameterTypeDescription
codeFunctionsErrorCode
messagestring
detailsunknown

FunctionsError.details

Additional details to be converted to JSON and included in the error response.

Signature:

readonlydetails?:unknown;

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 2024-10-22 UTC.