com.esotericsoftware.kryo
Class KryoException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.esotericsoftware.kryo.KryoException
All Implemented Interfaces:
java.io.Serializable

public class KryoException
extends java.lang.RuntimeException

General Kryo RuntimeException.

See Also:
Serialized Form

Constructor Summary
KryoException()
           
KryoException(java.lang.String message)
           
KryoException(java.lang.String message, java.lang.Throwable cause)
           
KryoException(java.lang.Throwable cause)
           
 
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
 

Constructor Detail

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)
Method Detail

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.