FunctionsError class

An error returned by the Firebase Functions client SDK.

See FunctionsErrorCode for full documentation of codes.

Signature:

export declare class FunctionsError extends FirebaseError 

Extends: FirebaseError

Constructors

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

Properties

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

FunctionsError.(constructor)

Constructs a new instance of the FunctionsError 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:

readonly details?: unknown;