Class: Terminal49Error
Base error for all Terminal49 API errors. Subclassed by status-specific errors.Extends
Error
Extended by
Constructors
Constructor
new Terminal49Error(message,status?,details?):Terminal49Error
Parameters
| Parameter | Type |
|---|---|
message | string |
status? | number |
details? | unknown |
Returns
Terminal49Error
Overrides
Error.constructor
Properties
Methods
captureStackTrace()
Creates astaticcaptureStackTrace(targetObject,constructorOpt?):void
.stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
${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:
Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Error.captureStackTrace
prepareStackTrace()
staticprepareStackTrace(err,stackTraces):any
Parameters
| Parameter | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-tracesInherited from
Error.prepareStackTrace