Constructor JsonRpcProtocolException
JsonRpcProtocolException()
Initialises a new JsonRpcProtocolException instance with the default error message.
Declaration
public JsonRpcProtocolException()
JsonRpcProtocolException(Exception)
Initialises a new JsonRpcProtocolException instance with the default error message and a
reference to the inner exception that is the cause of this exception.
Declaration
public JsonRpcProtocolException(Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
Exception | innerException | The exception that is the cause of the current exception. |
JsonRpcProtocolException(String)
Initialises a new JsonRpcProtocolException instance with a specified error message.
Declaration
public JsonRpcProtocolException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
JsonRpcProtocolException(JsonRpcId)
Initialises a new JsonRpcProtocolException instance with the default error message and
the ID of the related JSON-RPC message.
Declaration
public JsonRpcProtocolException(JsonRpcId id)
Parameters
Type | Name | Description |
---|---|---|
JsonRpcId | id | The JsonRpcId instance of the message that caused the exception. |
JsonRpcProtocolException(String, Exception)
Initialises a new JsonRpcProtocolException instance with a specified error message and a
reference to the inner exception that is the cause of this exception.
Declaration
public JsonRpcProtocolException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
Exception | innerException | The exception that is the cause of the current exception. |
JsonRpcProtocolException(JsonRpcId, Exception)
Initialises a new JsonRpcProtocolException instance with the default error message, the
ID of the related JSON-RPC message and a reference to the inner exception that is the cause of this
exception.
Declaration
public JsonRpcProtocolException(JsonRpcId id, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
JsonRpcId | id | The JsonRpcId instance of the message that caused the exception. |
Exception | innerException | The exception that is the cause of the current exception. |
JsonRpcProtocolException(String, JsonRpcId)
Initialises a new JsonRpcProtocolException instance with a specified error message and
the ID of the related JSON-RPC message.
Declaration
public JsonRpcProtocolException(string message, JsonRpcId id)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
JsonRpcId | id | The JsonRpcId instance of the message that caused the exception. |
JsonRpcProtocolException(String, JsonRpcId, Exception)
Initialises a new JsonRpcProtocolException instance with a specified error message, the
ID of the related JSON-RPC message and a reference to the inner exception that is the cause of this
exception.
Declaration
public JsonRpcProtocolException(string message, JsonRpcId id, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
JsonRpcId | id | The JsonRpcId instance of the message that caused the exception. |
Exception | innerException | The exception that is the cause of the current exception. |