Package 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.RuntimeExceptionGeneral Kryo RuntimeException.- Author:
- Nathan Sweet
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KryoException()KryoException(java.lang.String message)KryoException(java.lang.String message, java.lang.Throwable cause)KryoException(java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTrace(java.lang.String info)Adds information to the exception message about where in the the object graph serialization failure occurred.java.lang.StringgetMessage()
-
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.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.Serializerscan catchKryoException, add trace information, and rethrow the exception.
-
-