org.apache.wink.json4j
Class JSONException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.wink.json4j.JSONException
All Implemented Interfaces:
java.io.Serializable

public class JSONException
extends java.lang.Exception

Class that implements an exception type thrown by all JSON classes as a common exception when JSON handling errors occur.

See Also:
Serialized Form

Constructor Summary
JSONException(java.lang.String message)
          Constructor for JSON Exception
JSONException(java.lang.Throwable t)
          Constructor for JSON Exception
 
Method Summary
 java.lang.Throwable getCause()
          Method to get the underlying cause of the JSONException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, 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(java.lang.String message)
Constructor for JSON Exception

Parameters:
message - The error that generated the exception.

JSONException

public JSONException(java.lang.Throwable t)
Constructor for JSON Exception

Parameters:
t - The exception that generated this exception.
Method Detail

getCause

public java.lang.Throwable getCause()
Method to get the underlying cause of the JSONException

Overrides:
getCause in class java.lang.Throwable


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.