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