Skip to main content

@webda/coreReadme | API


Class: ValidationError

Copy from https://github.com/ajv-validator/ajv/blob/master/lib/runtime/validation_error.ts It is not exported by ajv

Extends

  • Error

Constructors

new ValidationError(errors)

new ValidationError(errors): ValidationError

Parameters

errors: Partial<ErrorObject<string, Record<string, any>, unknown>>[]

Returns

ValidationError

Overrides

Error.constructor

Source

packages/core/src/core.ts:97

Properties

ajv

readonly ajv: true

Source

packages/core/src/core.ts:94


errors

readonly errors: Partial<ErrorObject<string, Record<string, any>, unknown>>[]

Source

packages/core/src/core.ts:93


message

message: string

Inherited from

Error.message

Source

node_modules/typescript/lib/lib.es5.d.ts:1076


name

name: string

Inherited from

Error.name

Source

node_modules/typescript/lib/lib.es5.d.ts:1075


stack?

stack?: string

Inherited from

Error.stack

Source

node_modules/typescript/lib/lib.es5.d.ts:1077


validation

readonly validation: true

Source

packages/core/src/core.ts:95


prepareStackTrace?

static prepareStackTrace?: (err, stackTraces) => any

Optional override for formatting stack traces

Parameters

err: Error

stackTraces: CallSite[]

Returns

any

See

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from

Error.prepareStackTrace

Source

packages/core/node_modules/@types/node/globals.d.ts:11


stackTraceLimit

static stackTraceLimit: number

Inherited from

Error.stackTraceLimit

Source

packages/core/node_modules/@types/node/globals.d.ts:13

Methods

captureStackTrace()

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

targetObject: object

constructorOpt?: Function

Returns

void

Inherited from

Error.captureStackTrace

Source

packages/core/node_modules/@types/node/globals.d.ts:4