Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.json
Class JSONException

    java.lang.Object
      java.lang.Throwable
          java.lang.Exception
              org.json.JSONException

All Implemented Interfaces:
  java.io.Serializable

    public class JSONException

extends java.lang.Exception

The JSONException is thrown by the JSON.org classes when things are amiss.

Version:
  2008-09-18
Author:
  JSON.org
See Also:
  Serialized Form

Field Summary
`private java.lang.Throwable` | `cause`
`private static long` | `serialVersionUID`

Constructor Summary
`JSONException(java.lang.String message)` Constructs a JSONException with an explanatory message.
`JSONException(java.lang.Throwable t)`

Method Summary
`java.lang.Throwable` | `getCause()`

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`

Field Detail

### serialVersionUID

    private static final long serialVersionUID

See Also:
  Constant Field Values

### cause

    private java.lang.Throwable cause

Constructor Detail

### JSONException

    public JSONException(java.lang.String message)

  Constructs a JSONException with an explanatory message.

  Parameters:
    `message` - Detail about the reason for the exception.

### JSONException

    public JSONException(java.lang.Throwable t)

Method Detail

### getCause

    public java.lang.Throwable getCause()

  Overrides:
    `getCause` in class `java.lang.Throwable`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD