Skip to main content

Class: JSONPathTypeError

Error thrown due to type errors when evaluating filter expressions.

Extends

Constructors

new JSONPathTypeError()

new JSONPathTypeError(message, token): JSONPathTypeError

Parameters

message

string

token

Token

Returns

JSONPathTypeError

Overrides

JSONPathError.constructor

Defined in

src/path/errors.ts:58

Properties

cause?

optional cause: unknown

Inherited from

JSONPathError.cause

Defined in

docs/node_modules/typescript/lib/lib.es2022.error.d.ts:26


message

readonly message: string

Inherited from

JSONPathError.message

Defined in

src/path/errors.ts:59


name

name: string

Inherited from

JSONPathError.name

Defined in

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


stack?

optional stack: string

Inherited from

JSONPathError.stack

Defined in

docs/node_modules/typescript/lib/lib.es5.d.ts:1078


token

readonly token: Token

Inherited from

JSONPathError.token

Defined in

src/path/errors.ts:60


prepareStackTrace()?

static optional 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

JSONPathError.prepareStackTrace

Defined in

node_modules/@types/node/globals.d.ts:143


stackTraceLimit

static stackTraceLimit: number

Inherited from

JSONPathError.stackTraceLimit

Defined in

node_modules/@types/node/globals.d.ts:145

Methods

captureStackTrace()

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

targetObject

object

constructorOpt?

Function

Returns

void

Inherited from

JSONPathError.captureStackTrace

Defined in

node_modules/@types/node/globals.d.ts:136