public class KryoException extends RuntimeException
| Constructor and Description |
|---|
KryoException() |
KryoException(String message) |
KryoException(String message,
Throwable cause) |
KryoException(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.
|
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic KryoException()
public KryoException(String message)
public KryoException(Throwable cause)
public String getMessage()
getMessage in class Throwablepublic void addTrace(String info)
Serializers can catch KryoException, add trace information, and rethrow the exception.Copyright © 2023. All rights reserved.