Class JSONException

java.lang.Object
java.lang.Throwable
java.lang.Exception
io.github.mxz_schwarz.parser.JSONException
All Implemented Interfaces:
Serializable

public class JSONException extends Exception
A checked Exception that can be conveniently chained into an unchecked JSONRuntimeException via unchecked() and back into a checked JSONException with JSONRuntimeException.checked(). Instances of JSONException should be thrown by public or protected executables. Instances of JSONRuntimeException should be thrown by executables with visibility of package private or lower and then caught in public or protected executables in order to chain them in a JSONException.
See Also:
  • Method Details

    • unchecked

      public JSONRuntimeException unchecked()
      Returns:
      A new JSONParseException whose cause is this