# Class: BaseError

## Constructor

#### new BaseError(message, data)

  Class extending JavaScript Error object.

  ##### Parameters:

  Name | Type | Argument | Description
  --- | --- | --- | ---
  `message` | string |  |
  `data` | object | <optional> |

## Members

#### name :string

  Name of an error. In this case BaseError

  ##### Type:

  - string

## Methods

#### getData() → {object}

  Returns optional data object.

  ##### Returns:

  { object }

#### getMessage() → {string}

  Returns message related with error.
  AvayaClientServices.Base.ErrorDictionary

  ##### Returns:

  { string }

#### getName() → {string}

  Returns name of an error.

  ##### Returns:

  { string }