Skip to main content

Class: ValidationError

@kosko/generate.ValidationError

Hierarchy#

  • Error

    ValidationError

Constructors#

constructor#

+ new ValidationError(options: ValidationErrorOptions): ValidationError

Parameters:#

NameType
optionsValidationErrorOptions

Returns: ValidationError

Defined in: packages/generate/src/error.ts:61

Properties#

cause#

Readonly cause: Error

Defined in: packages/generate/src/error.ts:60


component#

Readonly component: unknown

Defined in: packages/generate/src/error.ts:61


index#

Readonly index: number[]

Defined in: packages/generate/src/error.ts:59


message#

message: string

Defined in: node_modules/.pnpm/typescript@4.2.3/node_modules/typescript/lib/lib.es5.d.ts:974


name#

name: string

Defined in: node_modules/.pnpm/typescript@4.2.3/node_modules/typescript/lib/lib.es5.d.ts:973


path#

Readonly path: string

Defined in: packages/generate/src/error.ts:58


prepareStackTrace#

Optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

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

Type declaration:#

▸ (err: Error, stackTraces: CallSite[]): any

Parameters:#

NameType
errError
stackTracesCallSite[]

Returns: any

Defined in: node_modules/.pnpm/@types+node@14.14.32/node_modules/@types/node/globals.d.ts:11

Defined in: node_modules/.pnpm/@types+node@14.14.32/node_modules/@types/node/globals.d.ts:11


stack#

Optional stack: string

Defined in: node_modules/.pnpm/typescript@4.2.3/node_modules/typescript/lib/lib.es5.d.ts:975


stackTraceLimit#

stackTraceLimit: number

Defined in: node_modules/.pnpm/@types+node@14.14.32/node_modules/@types/node/globals.d.ts:13

Methods#

captureStackTrace#

captureStackTrace(targetObject: object, constructorOpt?: Function): void

Create .stack property on a target object

Parameters:#

NameType
targetObjectobject
constructorOpt?Function

Returns: void

Defined in: node_modules/.pnpm/@types+node@14.14.32/node_modules/@types/node/globals.d.ts:4