JSONPath Tools / @jsonpath-tools/jsonpath / JSONPathError
Class: JSONPathError
Error meaning that a JSONPath query is not well-formed or valid.
Extends
Error
Constructors
new JSONPathError()
ts
new JSONPathError(diagnostics): JSONPathErrorParameters
diagnostics
readonly Diagnostics[]
Diagnostics that caused the error.
Returns
JSONPathError
Overrides
ts
Error.constructorProperties
cause?
ts
optional cause: unknown;Inherited from
ts
Error.causediagnostics
ts
readonly diagnostics: readonly Diagnostics[];Diagnostics that caused the error.
message
ts
message: string;Inherited from
ts
Error.messagename
ts
name: string;Inherited from
ts
Error.namestack?
ts
optional stack: string;Inherited from
ts
Error.stackprepareStackTrace()?
ts
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
ts
Error.prepareStackTracestackTraceLimit
ts
static stackTraceLimit: number;Inherited from
ts
Error.stackTraceLimitMethods
captureStackTrace()
ts
static captureStackTrace(targetObject, constructorOpt?): voidCreate .stack property on a target object
Parameters
targetObject
object
constructorOpt?
Function
Returns
void
Inherited from
ts
Error.captureStackTrace