com.esotericsoftware.kryo
Class KryoException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.esotericsoftware.kryo.KryoException
- All Implemented Interfaces:
- java.io.Serializable
public class KryoException
- extends java.lang.RuntimeException
General Kryo RuntimeException.
- See Also:
- Serialized Form
Method Summary |
void |
addTrace(java.lang.String info)
Adds information to the exception message about where in the the object graph serialization failure occurred. |
java.lang.String |
getMessage()
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
KryoException
public KryoException()
KryoException
public KryoException(java.lang.String message,
java.lang.Throwable cause)
KryoException
public KryoException(java.lang.String message)
KryoException
public KryoException(java.lang.Throwable cause)
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in class java.lang.Throwable
addTrace
public void addTrace(java.lang.String info)
- Adds information to the exception message about where in the the object graph serialization failure occurred.
Serializers
can catch KryoException
, add trace information, and rethrow the exception.