Project: /docs/reference/js/_project.yaml
Book: /docs/reference/_book.yaml
page_type: reference
{% comment %}
DO NOT EDIT THIS FILE!
This is generated by the JS SDK team, and any local changes will be
overwritten. Changes should be made in the source code at
https://github.com/firebase/firebase-js-sdk
{% endcomment %}
# FunctionsError class
An error returned by the Firebase Functions client SDK.
See [FunctionsErrorCode](./functions.md#functionserrorcode) for full documentation of codes.
Signature:
```typescript
export declare class FunctionsError extends FirebaseError
```
Extends: [FirebaseError](./util.firebaseerror.md#firebaseerror_class)
## Constructors
| Constructor | Modifiers | Description |
| --- | --- | --- |
| [(constructor)(code, message, details)](./functions.functionserror.md#functionserrorconstructor) | | Constructs a new instance of the FunctionsError class. |
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [details](./functions.functionserror.md#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:
```typescript
constructor(
code: FunctionsErrorCode, message?: string,
details?: unknown);
```
#### Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| code | [FunctionsErrorCode](./functions.md#functionserrorcodecore) | |
| message | string | |
| details | unknown | |
## FunctionsError.details
Additional details to be converted to JSON and included in the error response.
Signature:
```typescript
readonly details?: unknown;
```