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.RuntimeException
General 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 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()
-
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in 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.Serializers
can catchKryoException
, add trace information, and rethrow the exception.
-
-