API Reference
Rockets Core API
ts-core
classes
NotAnErrorException

Class: NotAnErrorException

Extends

  • Error

Implements

Constructors

new NotAnErrorException()

new NotAnErrorException(originalError, message): NotAnErrorException

Parameters

ParameterTypeDefault value
originalErrorunknownundefined
messagestring'An error was caught that is not an Error object'

Returns

NotAnErrorException

Overrides

Error.constructor

Defined in

.tmp/repos/rockets/packages/ts-core/src/exceptions/not-an-error.exception.ts:10 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueDescriptionInherited from
contextpublicobjectundefinedAdditional context-
context.originalErrorpublicunknownundefined--
errorCodepublicstring'NOT_AN_ERROR'The error code.-
messagepublicstringundefined-ExceptionInterface.message Error.message
namepublicstringundefined-ExceptionInterface.name Error.name
stack?publicstringundefined-ExceptionInterface.stack Error.stack
prepareStackTrace?static(err: Error, stackTraces: CallSite[]) => anyundefinedOptional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-traces (opens in a new tab)Error.prepareStackTrace
stackTraceLimitstaticnumberundefined-Error.stackTraceLimit

Methods

captureStackTrace()

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

ParameterType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from

Error.captureStackTrace

Defined in

.tmp/repos/rockets/node_modules/@types/node/globals.d.ts:4