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:
Serializable

public class JSONException
extends 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(String message)
          Constructor for JSON Exception
JSONException(Throwable t)
          Constructor for JSON Exception
 
Method Summary
 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(String message)
Constructor for JSON Exception

Parameters:
message - The error that generated the exception.

JSONException

public JSONException(Throwable t)
Constructor for JSON Exception

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

getCause

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

Overrides:
getCause in class Throwable


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