Package org.apache.bookkeeper.bookie
Class BookieException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.bookkeeper.bookie.BookieException
-
- All Implemented Interfaces:
java.io.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
public abstract class BookieException extends java.lang.ExceptionSignals 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBookieException.BookieIllegalOpExceptionSignals that an illegal operation attempts to access the data in a bookie.static classBookieException.BookieUnauthorizedAccessExceptionSignals that an unauthorized operation attempts to access the data in a bookie.static interfaceBookieException.CodeAn exception code indicates the failure reason.static classBookieException.CookieExistExceptionSignal that cookie already exists when creating a new cookie.static classBookieException.CookieNotFoundExceptionSignal that no cookie is found when starting a bookie.static classBookieException.DataUnknownExceptionSignal when a ledger is in a limbo state and certain operations cannot be performed on it.static classBookieException.DiskPartitionDuplicationExceptionSignals when multiple ledger/journal directories are mounted in same disk partition.static classBookieException.EntryLogMetadataMapExceptionSignal that error while accessing entry-log metadata map.static classBookieException.InvalidCookieExceptionSignal that an invalid cookie is found when starting a bookie.static classBookieException.LedgerFencedAndDeletedExceptionSignals that a ledger has been fenced in a bookie.static classBookieException.LedgerFencedExceptionSignals that a ledger has been fenced in a bookie.static classBookieException.MetadataStoreExceptionSignal when bookie has problems on accessing metadata store.static classBookieException.OperationRejectedExceptionSignals that a ledger's operation has been rejected by an internal component because of the resource saturation.static classBookieException.UnknownBookieIdExceptionSignal when bookie has problems on accessing metadata store.static classBookieException.UpgradeExceptionSignals that an exception occurs on upgrading a bookie.
-
Constructor Summary
Constructors Constructor Description BookieException(int code)BookieException(int code, java.lang.String reason)BookieException(int code, java.lang.String reason, java.lang.Throwable t)BookieException(int code, java.lang.Throwable t)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BookieExceptioncreate(int code)intgetCode()java.lang.StringgetMessage(int code)
-
-
-
Constructor Detail
-
BookieException
public BookieException(int code)
-
BookieException
public BookieException(int code, java.lang.Throwable t)
-
BookieException
public BookieException(int code, java.lang.String reason)
-
BookieException
public BookieException(int code, java.lang.String reason, java.lang.Throwable t)
-
-
Method Detail
-
create
public static BookieException create(int code)
-
getCode
public int getCode()
-
getMessage
public java.lang.String getMessage(int code)
-
-