com.almende.eve.rpc.jsonrpc
Class JSONRPCException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.almende.eve.rpc.jsonrpc.JSONRPCException
All Implemented Interfaces:
Serializable

public class JSONRPCException
extends Exception

See Also:
Serialized Form

Nested Class Summary
static class JSONRPCException.CODE
           
 
Field Summary
protected  com.fasterxml.jackson.databind.node.ObjectNode error
           
 
Constructor Summary
JSONRPCException()
           
JSONRPCException(Integer code, String message)
           
JSONRPCException(Integer code, String message, Object data)
           
JSONRPCException(JSONRPCException.CODE code)
           
JSONRPCException(JSONRPCException.CODE code, String description)
           
JSONRPCException(JSONRPCException error)
           
JSONRPCException(com.fasterxml.jackson.databind.node.ObjectNode exception)
           
JSONRPCException(String message)
           
 
Method Summary
 int getCode()
           
 Object getData()
           
 String getMessage()
           
 com.fasterxml.jackson.databind.node.ObjectNode getObjectNode()
           
 boolean hasData()
           
 void setCode(int code)
           
 void setData(Object data)
           
 void setMessage(String message)
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

error

protected com.fasterxml.jackson.databind.node.ObjectNode error
Constructor Detail

JSONRPCException

public JSONRPCException()

JSONRPCException

public JSONRPCException(JSONRPCException.CODE code)

JSONRPCException

public JSONRPCException(JSONRPCException.CODE code,
                        String description)

JSONRPCException

public JSONRPCException(JSONRPCException error)

JSONRPCException

public JSONRPCException(com.fasterxml.jackson.databind.node.ObjectNode exception)

JSONRPCException

public JSONRPCException(String message)

JSONRPCException

public JSONRPCException(Integer code,
                        String message)

JSONRPCException

public JSONRPCException(Integer code,
                        String message,
                        Object data)
Method Detail

setCode

public void setCode(int code)

getCode

public int getCode()

setMessage

public void setMessage(String message)

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

setData

public void setData(Object data)

getData

public Object getData()

hasData

public boolean hasData()

getObjectNode

public com.fasterxml.jackson.databind.node.ObjectNode getObjectNode()

toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2013 Almende BV. All Rights Reserved.