---
url: "https://vueda.dev/v3/reference/api/js/utils/errors/ServerFeedbackError/methods/constructor.md"
title: "constructor"
---

# constructor

## Overview

Creates an instance of ServerFeedbackError.

## Signature

`constructor(message, options)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-message">message</span> | `string` | no | The error message. |
| <span id="param-options">options</span> | `object` | no | Server feedback options. |

#### options Properties

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="param-options-errors">errors</span> | `object` |  |  | Blocking feedback keyed by field path. |
| <span id="param-options-messages">messages</span> | `object` |  |  | Advisory feedback keyed by field path. |
| <span id="param-options-response">response</span> | `Response` |  |  | The response object associated with the error. |
| <span id="param-options-responseData">responseData</span> | `any` |  |  | The data returned in the response. |

### Returns

[ServerFeedbackError](/v3/reference/api/js/utils/errors/members/ServerFeedbackError.md)

## Source

`client/lib/utils/errors.js:150`
