public class SerializationException extends RuntimeException
| Constructor and Description |
|---|
SerializationException() |
SerializationException(String message) |
SerializationException(String message,
Throwable cause) |
SerializationException(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 SerializationException()
public SerializationException(String message)
public SerializationException(Throwable cause)
public boolean causedBy(Class type)
public String getMessage()
getMessage in class Throwablepublic void addTrace(String info)
SerializationException, add trace information, and rethrow the exception.Copyright © 2021. All rights reserved.