This exception is a RuntimeException because it is exposed to the client. Using a
RuntimeException avoids bad coding practices on the client side where they catch the
exception and do nothing. It is often the case that you want to blow up if there is a parsing
error (i.e. often clients do not know how to recover from a JsonParseException.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public | JsonParseException(String
error message describing a possible cause of this exception. msg)Creates exception with the specified message. |
| public | JsonParseException(String
error message describing what happened. msg, Throwable root exception that caused this exception to be thrown. cause)Creates exception with the specified message and cause. |
| public | JsonParseException(Throwable
root exception that caused this exception to be thrown. cause)Creates exception with the specified cause. |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| JsonParseException | back to summary |
|---|---|
| public JsonParseException(String msg) Creates exception with the specified message. If you are wrapping another exception, consider
using
| |
| JsonParseException | back to summary |
|---|---|
| public JsonParseException(String msg, Throwable cause) Creates exception with the specified message and cause. | |
| JsonParseException | back to summary |
|---|---|
| public JsonParseException(Throwable cause) Creates exception with the specified cause. Consider using
| |