# Class JSONException

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

All Implemented Interfaces:
  `Serializable`

public class JSONException extends RuntimeException
The JSONException is thrown by the JSON.org classes then things are amiss.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JSONException(String message)`
  Constructs a JSONException with an explanatory message.
  `JSONException(Throwable t)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Throwable`
  `getCause()`

  ### Methods inherited from class java.lang.Throwable

  `addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### JSONException

    public JSONException(String message)
    Constructs a JSONException with an explanatory message.
    Parameters:
      `message` - Detail about the reason for the exception.

  - ### JSONException

    public JSONException(Throwable t)

- ## Method Details

  - ### getCause

    public Throwable getCause()
    Overrides:
      `getCause` in class `Throwable`