TwineError
@twine-protocol/twine-core v0.1.0 • Docs
twine-js / @twine-protocol/twine-core / TwineError
Class: TwineError
General Twine Error class
Extends
Error
Extended by
Constructors
new TwineError()
new TwineError(
message
?):TwineError
Parameters
message
?
string
Returns
Inherited from
Error.constructor
Defined in
node_modules/typescript/lib/lib.es5.d.ts:1082
new TwineError()
new TwineError(
message
?,options
?):TwineError
Parameters
message
?
string
options
?
ErrorOptions
Returns
Inherited from
Error.constructor
Defined in
node_modules/typescript/lib/lib.es5.d.ts:1082
Properties
prepareStackTrace?
static
(err
: Error
, stackTraces
: CallSite
[]) => any
Optional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Error.prepareStackTrace
node_modules/@types/node/globals.d.ts:28
stackTraceLimit
static
number
-
Error.stackTraceLimit
node_modules/@types/node/globals.d.ts:30
name
public
string
-
Error.name
node_modules/typescript/lib/lib.es5.d.ts:1076
message
public
string
-
Error.message
node_modules/typescript/lib/lib.es5.d.ts:1077
stack?
public
string
-
Error.stack
node_modules/typescript/lib/lib.es5.d.ts:1078
cause?
public
unknown
-
Error.cause
node_modules/typescript/lib/lib.es2022.error.d.ts:24
Methods
captureStackTrace()
captureStackTrace(targetObject, constructorOpt)
static
captureStackTrace(targetObject
,constructorOpt
?):void
Create .stack property on a target object
Parameters
targetObject
object
constructorOpt
?
Function
Returns
void
Inherited from
Error.captureStackTrace
Defined in
node_modules/@types/node/globals.d.ts:21
captureStackTrace(targetObject, constructorOpt)
static
captureStackTrace(targetObject
,constructorOpt
?):void
Create .stack property on a target object
Parameters
targetObject
object
constructorOpt
?
Function
Returns
void
Inherited from
Error.captureStackTrace
Defined in
node_modules/bun-types/globals.d.ts:1630
Last updated