Class JsonRpcException
Represents an error that occur during the JSON-RPC application execution.
public class JsonRpcException : Exception, ISerializable
- Inheritance
-
JsonRpcException
- Implements
- Inherited Members
Constructors
- JsonRpcException(string)
Initializes a new instance of the JsonRpcException class with a specified error message.
- JsonRpcException(string, int, object?)
Initializes a new instance of the JsonRpcException class with a specified error message, error code, and additional data.
Properties
- Code
Gets the error code associated with the JSON-RPC error.
- Data
Gets additional data associated with the error, if any.
Methods
- AsRpcError()
Converts the current JsonRpcException into a JsonRpcError.