public class JsonException extends RuntimeException
| Constructor and Description |
|---|
JsonException() |
JsonException(String message) |
JsonException(String message,
Throwable cause) |
JsonException(Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTrace(String info)
Adds information to the exception message about where in the the object graph serialization failure occurred.
|
boolean |
causedBy(Class type)
Returns true if any of the exceptions that caused this exception are of the specified type.
|
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic JsonException()
public JsonException(String message)
public JsonException(Throwable cause)
public boolean causedBy(Class type)
public String getMessage()
getMessage in class Throwablepublic void addTrace(String info)
JsonException, add trace information, and rethrow the exception.Copyright © 2014. All Rights Reserved.