Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ServerError

Thrown when an error response is received from digi.me API. Error field will be populated with the response from digi.me.

Hierarchy

Index

Constructors

constructor

  • new ServerError(message: string, error?: ApiError): ServerError

Properties

Optional error

error: ApiError

message

message: string

name

name: string = "DigiMeServerError"

Optional stack

stack: string

Static Optional prepareStackTrace

prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

Type declaration

    • (err: Error, stackTraces: CallSite[]): any
    • Optional override for formatting stack traces

      Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

Static stackTraceLimit

stackTraceLimit: number

Methods

Static captureStackTrace

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc