An error returned by the Firebase Functions client SDK.

See [FunctionsErrorCode](https://firebase.google.com/docs/reference/js/functions#functionserrorcode) for full documentation of codes.

**Signature:**

    export declare class FunctionsError extends FirebaseError 

**Extends:** [FirebaseError](https://firebase.google.com/docs/reference/js/util.firebaseerror#firebaseerror_class)

## Constructors

| Constructor | Modifiers | Description |
|---|---|---|
| [(constructor)(code, message, details, url)](https://firebase.google.com/docs/reference/js/functions.functionserror#functionserrorconstructor) |   | Constructs a new instance of the `FunctionsError` class. |

## Properties

| Property | Modifiers | Type | Description |
|---|---|---|---|
| [details](https://firebase.google.com/docs/reference/js/functions.functionserror#functionserrordetails) |   | unknown | Additional 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, 
        url?: string);

#### Parameters

| Parameter | Type | Description |
|---|---|---|
| code | [FunctionsErrorCode](https://firebase.google.com/docs/reference/js/functions#functionserrorcodecore) |   |
| message | string |   |
| details | unknown |   |
| url | string |   |

## FunctionsError.details

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

**Signature:**

    readonly details?: unknown;