Class APIError

APIError

Date

2/9/2024 - 6:49:57 AM

Export

Hierarchy (view full)

Constructors

  • Creates an instance of APIError.

    Parameters

    • param0: {
          code: string;
          message: string;
      }
      • code: string
      • message: string

    Returns APIError

    Date

    2/16/2024 - 5:19:35 AM

Properties

code: string
message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc