ClientException

ClientException

Own exception class used for Client errors

Derived from Error but added innerException and ADS error information

Constructor

new ClientException(client, sender, messageOrError, …errData)

Source:
Parameters:
Name Type Attributes Description
client Client

AdsClient instance

sender string

The method name that threw the error

messageOrError string | Error | ClientException

Error message or another Error/ClientException instance

errData * <repeatable>

Inner exceptions, AMS/ADS responses or any other metadata

Members

adsError :boolean

Source:

If true, this error is an AMS/ADS error

Type:
  • boolean

adsErrorInfo :AdsErrorInfo

Source:

If adsError = true, this contains error information

Type:

errorTrace :Array.<string>

Source:

Senders and error messages of inner exceptions

Type:
  • Array.<string>

getInnerException :function

Source:

Function to retrieve the inner exception of this error

Type:
  • function

metaData :any

Source:

All other metadata that is passed to the error class

Type:
  • any

name :string

Source:

Error class name

Type:
  • string

sender :string

Source:

The method that threw the error

Type:
  • string