Skip to content

FormValidationError

Overview

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

Properties

cause

Type: unknown

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

errors

Blocking feedback keyed by field path.

Type: object

Source: client/lib/utils/errors.js:112

message

Type: string

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

messages

Advisory feedback keyed by field path.

Type: object

Source: client/lib/utils/errors.js:118

name

Type: string

Source: client/lib/utils/errors.js:136

response

The response object associated with the error.

Type: Response

Source: client/lib/utils/errors.js:100

responseData

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

Type: any

Source: client/lib/utils/errors.js:106

serverStack

The server stack trace, if available.

Type: string

Source: client/lib/utils/errors.js:144

stack

Type: string

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

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 - Creates an instance of FormValidationError.
  • extractObjectPaths - Extracts object paths (those ending with a specific suffix, like .detail).
  • extractStringPaths - Extracts string paths (those that don't start with object paths).
  • captureStackTrace - 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

Source

client/lib/utils/errors.js:127

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2