---
url: "https://vueda.dev/v3/reference/api/js/utils/errors/members/FormValidationError.md"
title: "FormValidationError"
---

# FormValidationError

## Overview

Specific error class for responses interpreted as server form validation errors.

## Properties

### cause {#cause}

Type: `unknown`

Source: `node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24`

### errors {#errors}

Blocking feedback keyed by field path.

Type: `object`

Source: `client/lib/utils/errors.js:171`

### message {#message}

Type: `string`

Source: `node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es5.d.ts:1077`

### messages {#messages}

Advisory feedback keyed by field path.

Type: `object`

Source: `client/lib/utils/errors.js:177`

### name {#name}

Type: `string`

Source: `client/lib/utils/errors.js:195`

### response {#response}

The response object associated with the error.

Type: `Response`

Source: `client/lib/utils/errors.js:159`

### responseData {#responseData}

The data returned in the response. Decoded if JSON, otherwise a string.

Type: `any`

Source: `client/lib/utils/errors.js:165`

### serverStack {#serverStack}

The server stack trace, if available.

Type: `string`

Source: `client/lib/utils/errors.js:203`

### stack {#stack}

Type: `string`

Source: `node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es5.d.ts:1078`

### stackTraceLimit {#stackTraceLimit}

The `Error.stackTraceLimit` property specifies the number of stack frames
collected by a stack trace (whether generated by `new Error().stack` or
`Error.captureStackTrace(obj)`).

The default value is `10` but may be set to any valid JavaScript number. Changes
will affect any stack trace captured _after_ the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will
not capture any frames.

Type: `number`

Source: `node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/globals.d.ts:68`

## Methods

- [constructor](/v3/reference/api/js/utils/errors/FormValidationError/methods/constructor.md) - Creates an instance of FormValidationError.
- [extractObjectPaths](/v3/reference/api/js/utils/errors/FormValidationError/methods/extractObjectPaths.md) - Extracts object paths (those ending with a specific suffix, like `.detail`).
- [extractStringPaths](/v3/reference/api/js/utils/errors/FormValidationError/methods/extractStringPaths.md) - Extracts string paths (those that don't start with object paths).
- [captureStackTrace](/v3/reference/api/js/utils/errors/FormValidationError/methods/captureStackTrace.md) - Creates a `.stack` property on `targetObject`, which when accessed returns a string representing the location in the code at which `Error.captureStackTrace()` was called.
- [prepareStackTrace](/v3/reference/api/js/utils/errors/FormValidationError/methods/prepareStackTrace.md)

## Source

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