Package io.micronaut.json
Class JsonSyntaxException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
io.micronaut.json.JsonSyntaxException
- All Implemented Interfaces:
Serializable
Exception thrown when there is a syntax error in JSON (e.g. mismatched braces).
- Since:
- 4.0.0
- Author:
- Jonas Konrad
- See Also:
-
Constructor Summary
ConstructorDescriptionJsonSyntaxException
(String message) Construct a syntax exception with just a message.JsonSyntaxException
(Throwable cause) Construct a syntax exception from a framework exception (e.g. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JsonSyntaxException
Construct a syntax exception from a framework exception (e.g. jackson JsonParseException).- Parameters:
cause
- The framework exception
-
JsonSyntaxException
Construct a syntax exception with just a message.- Parameters:
message
- The message
-