Aller au contenu principal

Class: VTLExpressionError

Defined in: src/use-lunatic/commons/variables/errors.ts:1

Extends​

  • Error

Extended by​

Constructors​

Constructor​

new VTLExpressionError(expression, message): VTLExpressionError

Defined in: src/use-lunatic/commons/variables/errors.ts:2

Parameters​

ParameterType
expressionstring
messagestring

Returns​

VTLExpressionError

Overrides​

Error.constructor

Properties​

PropertyModifierTypeDescriptionInherited fromDefined in
cause?publicunknown-Error.causenode_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26
expressionreadonlystring--src/use-lunatic/commons/variables/errors.ts:3
messagepublicstring-Error.messagenode_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077
namepublicstring-Error.namenode_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076
stack?publicstring-Error.stacknode_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078
prepareStackTrace?static(err, stackTraces) => anyOptional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-tracesError.prepareStackTracenode_modules/.pnpm/@types+node@22.8.0/node_modules/@types/node/globals.d.ts:143
stackTraceLimitstaticnumber-Error.stackTraceLimitnode_modules/.pnpm/@types+node@22.8.0/node_modules/@types/node/globals.d.ts:145

Methods​

captureStackTrace()​

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/.pnpm/@types+node@22.8.0/node_modules/@types/node/globals.d.ts:136

Create .stack property on a target object

Parameters​

ParameterType
targetObjectobject
constructorOpt?Function

Returns​

void

Inherited from​

Error.captureStackTrace


isError()​

static isError(error): error is Error

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

Parameters​

ParameterType
errorunknown

Returns​

error is Error

Inherited from​

Error.isError