# Class: CallException

## Constructor

#### new CallException(error, protocolType, protocolErrorCode, protocolErrorReason)

  Exception representing an error related to the call.

  ##### Parameters:

  Name | Type | Argument | Description
  --- | --- | --- | ---
  `error` | string |  |
  `protocolType` | string | <optional> |
  `protocolErrorCode` | string | <optional> |
  `protocolErrorReason` | string | <optional> |

## Methods

#### getError() → {AvayaClientServices.Services.Call.CallError}

  Retrieves a call error.

  ##### Returns:

  { AvayaClientServices.Services.Call.CallError }

#### getProtocolErrorCode() → {string}

  Retrieves a protocol error code

  ##### Returns:

  { string }

#### getProtocolErrorReason() → {string}

  Retrieves a protocol error reason.

  ##### Returns:

  { string }

#### getProtocolType() → {AvayaClientServices.Services.Call.CallProtocolType}

  Retrieves a protocol type.

  ##### Returns:

  { AvayaClientServices.Services.Call.CallProtocolType }