Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Error defines an error occuring inside the SDK.

Hierarchy

  • RuntimeException
    • Error

Index

Constructors

  • new Error(code: string, message: string): Error
  • Create a new error.

    Parameters

    • code: string

      the error code.

    • message: string

      the error message.

    Returns Error

Properties

code: string

The error code

errorMessage: string

The error message

message: string
name: string
stack?: string
TYPE: string = "E"

The type of objects in this class

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

Type declaration

stackTraceLimit: number

Methods

  • getCause(): Exception
  • Returns Exception

  • toString(): string
  • Convert the object to a string.

    Returns string

    the string form of the object.

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void