Package org.rocksdb

Class RocksDBException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RocksDBException
    extends java.lang.Exception
    A RocksDBException encapsulates the error of an operation. This exception type is used to describe an internal error from the c++ rocksdb library.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Status getStatus()
      Get the status returned from RocksDB
      • 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
    • Constructor Detail

      • RocksDBException

        public RocksDBException​(java.lang.String msg)
        The private construct used by a set of public static factory method.
        Parameters:
        msg - the specified error message.
      • RocksDBException

        public RocksDBException​(java.lang.String msg,
                                Status status)
      • RocksDBException

        public RocksDBException​(Status status)
    • Method Detail

      • getStatus

        public Status getStatus()
        Get the status returned from RocksDB
        Returns:
        The status reported by RocksDB, or null if no status is available