Class: UpstreamError
Thrown when the carrier or terminal upstream API is unavailable (HTTP 5xx).Extends
Constructors
Constructor
new UpstreamError(message,status?,details?):UpstreamError
Parameters
Returns
UpstreamError
Overrides
Terminal49Error.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
Returns
void
Inherited from
Terminal49Error.captureStackTrace
prepareStackTrace()
staticprepareStackTrace(err,stackTraces):any
Parameters
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-tracesInherited from
Terminal49Error.prepareStackTrace