Class KryoException

  • All Implemented Interfaces:
    java.io.Serializable

    public class KryoException
    extends java.lang.RuntimeException
    General Kryo RuntimeException.
    Author:
    Nathan Sweet
    See Also:
    Serialized Form
    • 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()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, 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.