org.xerial.json
Class JSONException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.xerial.core.XerialException
              extended by org.xerial.json.JSONException
All Implemented Interfaces:
Serializable

public class JSONException
extends XerialException

Exception class related JSON

Author:
leo
See Also:
Serialized Form

Constructor Summary
JSONException(JSONErrorCode errorCode)
           
JSONException(JSONErrorCode errorCode, Object... message)
           
JSONException(JSONErrorCode errorCode, String message)
           
JSONException(JSONErrorCode errorCode, String message, Throwable e)
           
JSONException(JSONErrorCode errorCode, Throwable e)
           
 
Method Summary
 JSONErrorCode getErrorCode()
          Gets the error code
 String getMessage()
           
 
Methods inherited from class org.xerial.core.XerialException
concatinateMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSONException

public JSONException(JSONErrorCode errorCode)
Parameters:
errorCode -

JSONException

public JSONException(JSONErrorCode errorCode,
                     String message)

JSONException

public JSONException(JSONErrorCode errorCode,
                     String message,
                     Throwable e)
Parameters:
errorCode -
message -
e -

JSONException

public JSONException(JSONErrorCode errorCode,
                     Throwable e)
Parameters:
errorCode -
e -

JSONException

public JSONException(JSONErrorCode errorCode,
                     Object... message)
Parameters:
errorCode -
message -
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getErrorCode

public JSONErrorCode getErrorCode()
Gets the error code

Returns:
the error code


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.