using Newtonsoft.Json.Linq; using System; namespace GumartinM.JsonRPC4NET { /// /// Json rpc client exception. /// public class JsonRpcClientException : System.Exception { /// /// The _code. /// private readonly int _code; /// /// The _data. /// private readonly JToken _data; /// /// Initializes a new instance of the class. /// /// Code. /// Message. /// Data. public JsonRpcClientException(int code, String message, JToken data) : base(message) { _code = code; _data = data; } /// /// Gets the code. /// /// The code. public int getCode() { return _code; } /// /// Gets the data. /// /// The data. public JToken getData() { return _data; } } }