Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Error defines an error occuring inside the SDK.

Hierarchy

  • RuntimeException
    • Error

Index

Constructors

Properties

Methods

Constructors

constructor

  • 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

code: string

The error code

errorMessage

errorMessage: string

The error message

message

message: string

name

name: string

Optional stack

stack: string

Static TYPE

TYPE: string = "E"

The type of objects in this class

Methods

getCause

  • getCause(): Exception
  • Returns Exception

toString

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

    Returns string

    the string form of the object.