# CommunicationErrorException Constructor

## Overloads

| [CommunicationErrorException()](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.CommunicationErrorException.-ctor.htm#Qlik_Sense_JsonRpc_CommunicationErrorException__ctor) |  | Initializes a new instance of the CommunicationErrorException class. |
| --- | --- | --- |
| [CommunicationErrorException(String)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.CommunicationErrorException.-ctor.htm#Qlik_Sense_JsonRpc_CommunicationErrorException__ctor_System_String_) |  | Initializes a new instance of the CommunicationErrorException class<br>with a specified error message. |
| [CommunicationErrorException(String, Exception)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.CommunicationErrorException.-ctor.htm#Qlik_Sense_JsonRpc_CommunicationErrorException__ctor_System_String_System_Exception_) |  | Initializes a new instance of the CommunicationErrorException class<br>with a specified error message and a reference to the inner exception<br>that is the cause of this exception. |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.CommunicationErrorException.-ctor.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.CommunicationErrorException.-ctor.htm)

## CommunicationErrorException()

Initializes a new instance of the CommunicationErrorException class.

### Declaration

```

          public CommunicationErrorException()
    
  
```

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.CommunicationErrorException.-ctor.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.CommunicationErrorException.-ctor.htm)

## CommunicationErrorException(String)

Initializes a new instance of the CommunicationErrorException class with a specified error message.

### Declaration

```

          public CommunicationErrorException(string message)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | message | The error message that explains the reason for the exception. |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.CommunicationErrorException.-ctor.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.CommunicationErrorException.-ctor.htm)

## CommunicationErrorException(String, Exception)

Initializes a new instance of the CommunicationErrorException class with a specified error message and a reference to the inner exception that is the cause of this exception.

### Declaration

```
public CommunicationErrorException(string message, Exception innerException)
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | message | The error message that explains the reason for the exception. |
| System.Exception | innerException | The exception that is the cause of the current exception.<br>Null reference if no inner exception is specified. |