Class
JsonRpcException
Exception raised for JSON-RPC error responses.
Inheritance
- Exception
- JsonRpcException
Constructors
JsonRpcException 4 overloads
public JsonRpcException(JsonRpcError error) #Initializes a new instance from a JSON-RPC error.
Parameters
- error IntelligenceX.Rpc.JsonRpcError
- The JSON-RPC error payload.
public JsonRpcException(String method, JsonRpcError error) #Initializes a new instance from a JSON-RPC error and inner exception.
Parameters
- error IntelligenceX.Rpc.JsonRpcError
- The JSON-RPC error payload.
- innerException System.Exception
- The underlying exception.
JsonRpcException(System.String method, IntelligenceX.Rpc.JsonRpcError error) #Initializes a new instance for a specific JSON-RPC method.
Parameters
- method System.String
- The method name.
- error IntelligenceX.Rpc.JsonRpcError
- The JSON-RPC error payload.
public JsonRpcException(String method, JsonRpcError error, Exception innerException) #Initializes a new instance for a specific JSON-RPC method with an inner exception.
Parameters
- method System.String
- The method name.
- error IntelligenceX.Rpc.JsonRpcError
- The JSON-RPC error payload.
- innerException System.Exception
- The underlying exception.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
public override Void GetObjectData(SerializationInfo info, StreamingContext context) #Returns:
VoidInherited from Exception
Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}") EditorBrowsable(1)Parameters
- info SerializationInfo
- context StreamingContext
Properties
Inherited Properties
public MethodBase TargetSite { get; } #Inherited from Exception
public override String Message { get; } #Inherited from Exception
public override IDictionary Data { get; } #Inherited from Exception
public Exception InnerException { get; } #Inherited from Exception
public override String HelpLink { get; set; } #Inherited from Exception
public override String Source { get; set; } #Inherited from Exception
public Int32 HResult { get; set; } #Inherited from Exception
public override String StackTrace { get; } #Inherited from Exception