Package: groovy.json

## [Java] Class JsonException

- groovy.json.JsonException

-     public class JsonException
      extends RuntimeException

  `JsonException` is the exception thrown by the JSON builder and slurper classes, whenever a problem occurs when creating or parsing JSON data structures.

  Since:
    1.8.0

- - ### Constructor Summary

    Constructors
    Constructor and description
    `JsonException()` Creates a `JsonException` with no detail message.
    `JsonException(String s)` Creates a `JsonException` with the supplied detail message.
    `JsonException(String s, Throwable throwable)` Creates a `JsonException` with the supplied detail message and cause.
    `JsonException(Throwable throwable)` Creates a `JsonException` with the supplied cause.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class RuntimeException` | `addSuppressed, equals, fillInStackTrace, getCause, getClass, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, hashCode, initCause, notify, notifyAll, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### public JsonException()

      Creates a `JsonException` with no detail message.

    - #### public JsonException(String s)

      Creates a `JsonException` with the supplied detail message.

      Parameters:
        `s` - the detail message

    - #### public JsonException(String s, Throwable throwable)

      Creates a `JsonException` with the supplied detail message and cause.

      Parameters:
        `s` - the detail message
        `throwable` - the cause

    - #### public JsonException(Throwable throwable)

      Creates a `JsonException` with the supplied cause.

      Parameters:
        `throwable` - the cause