# Class: ContactsError

## Constructor

#### new ContactsError(reason, message)

  Error object that represents contacts-related failure.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `reason` | AvayaClientServices.Services.Contacts.ContactsErrorReason | Contacts-specific error reason that causes this error.
  `message` | string |

## Members

#### name :string

  Name of an error. In this case BaseError

  ##### Type:

  - string
  Inherited From:
    - AvayaClientServices.Base.BaseError#name

## Methods

#### getData() → {object}

  Returns optional data object.

  Inherited From:
    - AvayaClientServices.Base.BaseError#getData

  ##### Returns:

  { object }

#### getMessage() → {string}

  Returns message related with error.
  AvayaClientServices.Base.ErrorDictionary

  Inherited From:
    - AvayaClientServices.Base.BaseError#getMessage

  ##### Returns:

  { string }

#### getName() → {string}

  Returns name of an error.

  Inherited From:
    - AvayaClientServices.Base.BaseError#getName

  ##### Returns:

  { string }

#### getReason() → {AvayaClientServices.Services.Contacts.ContactsErrorReason}

  Returns error reason.

  ##### Returns:

  { AvayaClientServices.Services.Contacts.ContactsErrorReason }

  Contacts-specific error reason that causes this error.