Class
JsonRpcException
Represents an error that occur during the JSON-RPC application execution.
public class JsonRpcException : Exception, ISerializableInheritance #
object ← Exception ← JsonRpcException
Implements #
Inherited Members #
Exception.GetBaseException(), Exception.ToString(), Exception.GetType(), Exception.TargetSite, Exception.Message, Exception.Data, Exception.InnerException, Exception.HelpLink, Exception.Source, Exception.HResult, Exception.StackTrace, Exception.SerializeObjectState, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| 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 #
| Name | Description |
|---|---|
| Code | Gets the error code associated with the JSON-RPC error. |
| Data | Gets additional data associated with the error, if any. |
Methods #
| Name | Description |
|---|---|
| AsRpcError() | Converts the current JsonRpcException into a JsonRpcError. |