/** * Instantiates a new jSONRPC exception. */ public JSONRPCException() { super(); init(CODE.UNKNOWN_ERROR, null, null); }
/** * Instantiates a new jSON response. * * @param response * the response */ public JSONResponse(final ObjectNode response) { init(response); }
/** * Instantiates a new jSON request. */ public JSONRequest() { init(null, null, null, null); }
/** * Instantiates a new jSONRPC exception. * * @param code * the code * @param message * the message */ public JSONRPCException(final Integer code, final String message) { super(message); setCode(code); setMessage(message); }
/** * Extend these params with the other tree, overwriting existing * fields, adding new ones. * * @param other * the other * @return the params */ public Params extend(final ObjectNode other) { this.setAll(other); return this; } }
/** * Instantiates a new jSONRPC exception. * * @param message * the message * @param t * the t */ public JSONRPCException(final String message, final Throwable t) { super(message, t); init(CODE.UNKNOWN_ERROR, message, t); }
/** * Instantiates a new jSON response. * * @param error * the error */ public JSONResponse(final JSONRPCException error) { init(null, null, error); }
/** * Instantiates a new JSON request. * * @param request * the request */ public JSONRequest(final JsonNode request) { init(request); }
/** * Instantiates a new jSONRPC exception. * * @param code * the code */ public JSONRPCException(final CODE code) { super(); init(code, null, null); }
/** * Instantiates a new jSON response. */ public JSONResponse() { init(null, null, null); }
/** * Instantiates a new JSON request. * * @param method * the method * @param params * the params */ public JSONRequest(final String method, final ObjectNode params) { init(null, method, params, null); }
/** * Instantiates a new jSONRPC exception. * * @param code * the code * @param description * the description */ public JSONRPCException(final CODE code, final String description) { super(description); init(code, description, null); }
/** * Instantiates a new jSON response. * * @param id * the id * @param result * the result */ public JSONResponse(final JsonNode id, final Object result) { init(id, result, null); }
/** * Instantiates a new jSON request. * * @param id * the id * @param method * the method * @param params * the params * @param callback * the callback */ public <T> JSONRequest(final JsonNode id, final String method, final ObjectNode params, final AsyncCallback<T> callback) { init(id, method, params, callback); }
/** * Instantiates a new jSONRPC exception. * * @param message * the message */ public JSONRPCException(final String message) { super(message); init(CODE.UNKNOWN_ERROR, message, null); }
/** * Instantiates a new jSON response. * * @param result * the result */ public JSONResponse(final Object result) { init(null, result, null); }
/** * Instantiates a new JSON request. * * @param method * the method * @param params * the params * @param callback * the callback */ public <T> JSONRequest(final String method, final ObjectNode params, final AsyncCallback<T> callback) { if (callback != null) { } init(null, method, params, callback); }
/** * Instantiates a new jSONRPC exception. * * @param code * the code * @param description * the description * @param t * the t */ public JSONRPCException(final CODE code, final String description, final Throwable t) { super(description, t); init(code, description, t); }
/** * Instantiates a new jSON response. * * @param id * the id * @param error * the error */ public JSONResponse(final JsonNode id, final JSONRPCException error) { init(id, null, error); }