Defined in: node_modules/vfile-message/lib/index.d.ts:4
Message.
Errornew VFileMessage(
reason,options?):VFileMessage
Defined in: node_modules/vfile-message/lib/index.d.ts:5
| Parameter | Type |
|---|---|
reason | string |
options? | null |
VFileMessage
Error.constructor
new VFileMessage(
reason,parent,origin?):VFileMessage
Defined in: node_modules/vfile-message/lib/index.d.ts:6
| Parameter | Type |
|---|---|
reason | string |
parent | undefined |
origin? | null |
VFileMessage
Error.constructor
new VFileMessage(
reason,place,origin?):VFileMessage
Defined in: node_modules/vfile-message/lib/index.d.ts:11
| Parameter | Type |
|---|---|
reason | string |
place | undefined |
origin? | null |
VFileMessage
Error.constructor
new VFileMessage(
reason,origin?):VFileMessage
Defined in: node_modules/vfile-message/lib/index.d.ts:16
| Parameter | Type |
|---|---|
reason | string |
origin? | null |
VFileMessage
Error.constructor
new VFileMessage(
cause,parent,origin?):VFileMessage
Defined in: node_modules/vfile-message/lib/index.d.ts:17
| Parameter | Type |
|---|---|
cause | Error |
parent | undefined |
origin? | null |
VFileMessage
Error.constructor
new VFileMessage(
cause,place,origin?):VFileMessage
Defined in: node_modules/vfile-message/lib/index.d.ts:22
| Parameter | Type |
|---|---|
cause | Error |
place | undefined |
origin? | null |
VFileMessage
Error.constructor
new VFileMessage(
cause,origin?):VFileMessage
Defined in: node_modules/vfile-message/lib/index.d.ts:27
| Parameter | Type |
|---|---|
cause | Error |
origin? | null |
VFileMessage
Error.constructor
actual:
undefined|string
Defined in: node_modules/vfile-message/lib/index.d.ts:92
Specify the source value that’s being reported, which is deemed incorrect.
ancestors:
undefined|Node[]
Defined in: node_modules/vfile-message/lib/index.d.ts:33
Stack of ancestor nodes surrounding the message.
optionalcause:unknown
Defined in: node_modules/bun-types/globals.d.ts:1026
The cause of the error.
Error.cause
column:
undefined|number
Defined in: node_modules/vfile-message/lib/index.d.ts:39
Starting column of message.
expected:
undefined|string[]
Defined in: node_modules/vfile-message/lib/index.d.ts:98
Suggest acceptable values that can be used instead of actual.
fatal:
undefined|null|boolean
Defined in: node_modules/vfile-message/lib/index.d.ts:49
State of problem.
true — error, file not usablefalse — warning, change may be neededundefined — change likely not neededfile:
undefined|string
Defined in: node_modules/vfile-message/lib/index.d.ts:55
Path of a file (used throughout the VFile ecosystem).
line:
undefined|number
Defined in: node_modules/vfile-message/lib/index.d.ts:61
Starting line of error.
message:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077
Error.message
name:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076
Error.name
note:
undefined|string
Defined in: node_modules/vfile-message/lib/index.d.ts:104
Long form description of the message (you should use markdown).
Defined in: node_modules/vfile-message/lib/index.d.ts:67
Place of message.
reason:
string
Defined in: node_modules/vfile-message/lib/index.d.ts:73
Reason for message, should use markdown.
ruleId:
undefined|string
Defined in: node_modules/vfile-message/lib/index.d.ts:79
Category of message (example: 'my-rule').
source:
undefined|string
Defined in: node_modules/vfile-message/lib/index.d.ts:85
Namespace of message (example: 'my-package').
optionalstack:string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078
Error.stack
url:
undefined|string
Defined in: node_modules/vfile-message/lib/index.d.ts:113
Link to docs for the message.
👉 Note: this must be an absolute URL that can be passed as
xtonew URL(x).
staticstackTraceLimit:number
Defined in: node_modules/bun-types/globals.d.ts:1048
The maximum number of stack frames to capture.
Error.stackTraceLimit
staticcaptureStackTrace(targetObject,constructorOpt?):void
Defined in: node_modules/bun-types/globals.d.ts:1043
Create .stack property on a target object
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
void
Error.captureStackTrace
staticcaptureStackTrace(targetObject,constructorOpt?):void
Defined in: node_modules/@types/node/globals.d.ts:132
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
void
Error.captureStackTrace
staticisError(value):value is Error
Defined in: node_modules/bun-types/globals.d.ts:1038
Check if a value is an instance of Error
| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to check |
value is Error
True if the value is an instance of Error, false otherwise
Error.isError
staticprepareStackTrace(err,stackTraces):any
Defined in: node_modules/@types/node/globals.d.ts:136
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Error.prepareStackTrace