Package groovy.json
Class JsonException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
groovy.json.JsonException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Exceptions.JsonInternalException
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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates aJsonExceptionwith no detail message.Creates aJsonExceptionwith the supplied detail message.JsonException(String s, Throwable throwable) Creates aJsonExceptionwith the supplied detail message and cause.JsonException(Throwable throwable) Creates aJsonExceptionwith the supplied cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JsonException
public JsonException()Creates aJsonExceptionwith no detail message. -
JsonException
Creates aJsonExceptionwith the supplied detail message.- Parameters:
s- the detail message
-
JsonException
Creates aJsonExceptionwith the supplied detail message and cause.- Parameters:
s- the detail messagethrowable- the cause
-
JsonException
Creates aJsonExceptionwith the supplied cause.- Parameters:
throwable- the cause
-