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:
Serializable
- Direct Known Subclasses:
KryoBufferOverflowException
,KryoBufferUnderflowException
public class KryoException extends RuntimeException
General Kryo RuntimeException.- Author:
- Nathan Sweet
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KryoException()
KryoException(String message)
KryoException(String message, Throwable cause)
KryoException(Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTrace(String info)
Adds information to the exception message about where in the the object graph serialization failure occurred.String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
addTrace
public void addTrace(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.
-
-