Sisk

Class

JsonRpcException

Namespace
Sisk.JsonRPC
Assembly
Sisk.JsonRPC.dll

Represents an error that occur during the JSON-RPC application execution.

C#
public class JsonRpcException : Exception, ISerializable

Inheritance #

object ← Exception ← JsonRpcException

Implements #

ISerializable

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 #

NameDescription
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 #

NameDescription
CodeGets the error code associated with the JSON-RPC error.
DataGets additional data associated with the error, if any.

Methods #

NameDescription
AsRpcError()Converts the current JsonRpcException into a JsonRpcError.

Type to search the documentation and the API reference.