The CodedError operates like a normal error object but also includes a code property. This code property is one of the enumerations found in the ErrorCode enum.

Hierarchy

  • Error
    • CodedError

Properties

code: ErrorCode

The human readable error code associated with this CodedError class.

message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc