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.LedgerFencedException
,BookieException.MetadataStoreException
,BookieException.OperationRejectedException
,BookieException.UnknownBookieIdException
,BookieException.UpgradeException
public abstract class BookieException extends java.lang.Exception
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BookieException.BookieIllegalOpException
Signals that an illegal operation attempts to access the data in a bookie.static class
BookieException.BookieUnauthorizedAccessException
Signals that an unauthorized operation attempts to access the data in a bookie.static interface
BookieException.Code
An exception code indicates the failure reason.static class
BookieException.CookieExistException
Signal that cookie already exists when creating a new cookie.static class
BookieException.CookieNotFoundException
Signal that no cookie is found when starting a bookie.static class
BookieException.DataUnknownException
Signal when a ledger is in a limbo state and certain operations cannot be performed on it.static class
BookieException.DiskPartitionDuplicationException
Signals when multiple ledger/journal directories are mounted in same disk partition.static class
BookieException.EntryLogMetadataMapException
Signal that error while accessing entry-log metadata map.static class
BookieException.InvalidCookieException
Signal that an invalid cookie is found when starting a bookie.static class
BookieException.LedgerFencedException
Signals that a ledger has been fenced in a bookie.static class
BookieException.MetadataStoreException
Signal when bookie has problems on accessing metadata store.static class
BookieException.OperationRejectedException
Signals that a ledger's operation has been rejected by an internal component because of the resource saturation.static class
BookieException.UnknownBookieIdException
Signal when bookie has problems on accessing metadata store.static class
BookieException.UpgradeException
Signals 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 BookieException
create(int code)
int
getCode()
java.lang.String
getMessage(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)
-
-