Package org.apache.bookkeeper.bookie
Class BookieException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.bookkeeper.bookie.BookieException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BookieException.BookieIllegalOpException,BookieException.BookieUnauthorizedAccessException,BookieException.CookieExistException,BookieException.CookieNotFoundException,BookieException.DataUnknownException,BookieException.DiskPartitionDuplicationException,BookieException.EntryLogMetadataMapException,BookieException.InvalidCookieException,BookieException.LedgerFencedAndDeletedException,BookieException.LedgerFencedException,BookieException.MetadataStoreException,BookieException.OperationRejectedException,BookieException.UnknownBookieIdException,BookieException.UpgradeException
Signals that a Bookie exception of some sort has occurred. This class
is the general class of exceptions produced by failed or interrupted bookie operations.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSignals that an illegal operation attempts to access the data in a bookie.static classSignals that an unauthorized operation attempts to access the data in a bookie.static interfaceAn exception code indicates the failure reason.static classSignal that cookie already exists when creating a new cookie.static classSignal that no cookie is found when starting a bookie.static classSignal when a ledger is in a limbo state and certain operations cannot be performed on it.static classSignals when multiple ledger/journal directories are mounted in same disk partition.static classSignal that error while accessing entry-log metadata map.static classSignal that an invalid cookie is found when starting a bookie.static classSignals that a ledger has been fenced in a bookie.static classSignals that a ledger has been fenced in a bookie.static classSignal when bookie has problems on accessing metadata store.static classSignals that a ledger's operation has been rejected by an internal component because of the resource saturation.static classSignal when bookie has problems on accessing metadata store.static classSignals that an exception occurs on upgrading a bookie. -
Constructor Summary
ConstructorsConstructorDescriptionBookieException(int code) BookieException(int code, String reason) BookieException(int code, String reason, Throwable t) BookieException(int code, Throwable t) -
Method Summary
Modifier and TypeMethodDescriptionstatic BookieExceptioncreate(int code) intgetCode()getMessage(int code) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BookieException
public BookieException(int code) -
BookieException
-
BookieException
-
BookieException
-
-
Method Details
-
create
-
getCode
public int getCode() -
getMessage
-