Class WriteStateException

  • All Implemented Interfaces:
    java.io.Serializable

    public class WriteStateException
    extends java.io.IOException
    This exception is thrown when there is a problem of writing state to disk.
    See Also:
    Serialized Form
    • Method Summary

      Modifier and Type Method Description
      boolean isDirty()
      If this method returns false, state is guaranteed to be not written to disk.
      void rethrowAsErrorOrUncheckedException()
      Rethrows this WriteStateException as IOError if dirty flag is set, which will lead to JVM shutdown.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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
    • Method Detail

      • isDirty

        public boolean isDirty()
        If this method returns false, state is guaranteed to be not written to disk. If this method returns true, we don't know if state is written to disk.
      • rethrowAsErrorOrUncheckedException

        public void rethrowAsErrorOrUncheckedException()
        Rethrows this WriteStateException as IOError if dirty flag is set, which will lead to JVM shutdown. If dirty flag is not set, this exception is wrapped into UncheckedIOException.