Class: InvalidKdlError
Defined in: src/error.js:8
Error thrown when invalid KDL is encountered
Extends
Error
Constructors
new InvalidKdlError()
new InvalidKdlError(
message
,options
?):InvalidKdlError
Defined in: src/error.js:53
Parameters
Parameter | Type | Description |
---|---|---|
message | string | |
options ? | ErrorOptions & object |
Returns
Overrides
Error.constructor
Properties
cause?
optional
cause:unknown
Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
Error.cause
end
readonly
end:undefined
|Location
Defined in: src/error.js:28
The location of the end of the error, if it can be tied to a single location
errors
readonly
errors:undefined
|InvalidKdlError
[]
Defined in: src/error.js:47
Collection of more specific errors
If this property is present, then the message of this error will be something generic and the errors in this property will contain more useful information.
message
message:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Error.message
stack?
optional
stack:string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Error.stack
start
readonly
start:undefined
|Location
Defined in: src/error.js:20
The location of the start of the error, if it can be tied to a single location
token
readonly
token:undefined
|Token
Defined in: src/error.js:36
Token tied to the error, if it can be tied to a single token
prepareStackTrace()?
static
optional
prepareStackTrace: (err
,stackTraces
) =>any
Defined in: node_modules/@types/node/globals.d.ts:143
Optional override for formatting stack traces
Parameters
Parameter | Type |
---|---|
err | Error |
stackTraces | CallSite [] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Error.prepareStackTrace
stackTraceLimit
static
stackTraceLimit:number
Defined in: node_modules/@types/node/globals.d.ts:145
Inherited from
Error.stackTraceLimit
Methods
getDetails()
getDetails():
Generator
<InvalidKdlError
,void
,void
>
Defined in: src/error.js:79
Returns an iterable for the details of this error
If this error contains more detailed errors, this iterable yields those detailed errors. If this error doesn't have more detailed errors, this iterable yields this error itself.
Returns
Generator
<InvalidKdlError
, void
, void
>
captureStackTrace()
static
captureStackTrace(targetObject
,constructorOpt
?):void
Defined in: node_modules/@types/node/globals.d.ts:136
Create .stack property on a target object
Parameters
Parameter | Type |
---|---|
targetObject | object |
constructorOpt ? | Function |
Returns
void
Inherited from
Error.captureStackTrace