Package org.apache.bookkeeper.client.api
Interface BKException.Code
-
- All Known Subinterfaces:
BKException.Code
- Enclosing class:
- BKException
public static interface BKException.Code
Codes which represent the various exception types.
-
-
Field Summary
Fields Modifier and Type Field Description static int
AddEntryQuorumTimeoutException
Add entry operation timeouts on waiting quorum responses.static int
BookieHandleNotAvailableException
Bookies are not available.static int
ClientClosedException
Executing operations on a closed client.static int
DataUnknownException
Operations failed due to ledger data in an unknown state.static int
DigestMatchException
Digest doesn't match on returned entries.static int
DigestNotInitializedException
Digest Manager is not initialized (client error).static int
DuplicateEntryIdException
Duplicated entry id is found whenLedgerHandleAdv.addEntry(long, byte[])
.static int
IllegalOpException
Operation is illegal.static int
IncorrectParameterException
Incorrect parameters (operations are absolutely not executed).static int
InterruptedException
Synchronous operations are interrupted.static int
LedgerClosedException
Executing operations on a closed ledger handle.static int
LedgerExistException
Ledger already exists.static int
LedgerFencedException
Operations failed due to ledgers are fenced.static int
LedgerIdOverflowException
Ledger id overflow happens on ledger manager.static int
LedgerRecoveryException
Ledger recovery operations failed.static int
MetadataSerializationException
Failure to serialize metadata.static int
MetadataVersionException
Bad version on executing metadata operations.static int
MetaStoreException
Meta store operations failed.static int
NoBookieAvailableException
Unused.static int
NoSuchEntryException
No such entry exists.static int
NoSuchLedgerExistsException
No such ledger exists.static int
NoSuchLedgerExistsOnMetadataServerException
No such ledger exists one metadata server.static int
NotEnoughBookiesException
Not enough bookies available to form an ensemble.static int
OK
Everything is OK.static int
ProtocolVersionException
Protocol version is wrong (operations are absolutely not executed).static int
QuorumException
Unused.static int
ReadException
Read operations failed (bookie error).static int
ReplicationException
Generic exception code used to propagate in replication pipeline.static int
SecurityException
static int
TimeoutException
Operations timeouts.static int
TooManyRequestsException
Operations failed due to too many requests in the queue.static int
UnauthorizedAccessException
Operations failed due to unauthorized.static int
UnclosedFragmentException
Replication failed due to unclosed fragments.static int
UnexpectedConditionException
Unexpected condition.static int
UNINITIALIZED
A placer holder (unused).static int
WriteException
Write operations failed (bookie error).static int
WriteOnReadOnlyBookieException
Write operations failed due to bookies are readonly.static int
ZKException
ZooKeeper operations failed.
-
-
-
Field Detail
-
UNINITIALIZED
static final int UNINITIALIZED
A placer holder (unused).- See Also:
- Constant Field Values
-
OK
static final int OK
Everything is OK.- See Also:
- Constant Field Values
-
ReadException
static final int ReadException
Read operations failed (bookie error).- See Also:
- Constant Field Values
-
QuorumException
static final int QuorumException
Unused.- See Also:
- Constant Field Values
-
NoBookieAvailableException
static final int NoBookieAvailableException
Unused.- See Also:
- Constant Field Values
-
DigestNotInitializedException
static final int DigestNotInitializedException
Digest Manager is not initialized (client error).- See Also:
- Constant Field Values
-
DigestMatchException
static final int DigestMatchException
Digest doesn't match on returned entries.- See Also:
- Constant Field Values
-
NotEnoughBookiesException
static final int NotEnoughBookiesException
Not enough bookies available to form an ensemble.- See Also:
- Constant Field Values
-
NoSuchLedgerExistsException
static final int NoSuchLedgerExistsException
No such ledger exists.- See Also:
- Constant Field Values
-
BookieHandleNotAvailableException
static final int BookieHandleNotAvailableException
Bookies are not available.- See Also:
- Constant Field Values
-
ZKException
static final int ZKException
ZooKeeper operations failed.- See Also:
- Constant Field Values
-
LedgerRecoveryException
static final int LedgerRecoveryException
Ledger recovery operations failed.- See Also:
- Constant Field Values
-
LedgerClosedException
static final int LedgerClosedException
Executing operations on a closed ledger handle.- See Also:
- Constant Field Values
-
WriteException
static final int WriteException
Write operations failed (bookie error).- See Also:
- Constant Field Values
-
NoSuchEntryException
static final int NoSuchEntryException
No such entry exists.- See Also:
- Constant Field Values
-
IncorrectParameterException
static final int IncorrectParameterException
Incorrect parameters (operations are absolutely not executed).- See Also:
- Constant Field Values
-
InterruptedException
static final int InterruptedException
Synchronous operations are interrupted.- See Also:
- Constant Field Values
-
ProtocolVersionException
static final int ProtocolVersionException
Protocol version is wrong (operations are absolutely not executed).- See Also:
- Constant Field Values
-
MetadataVersionException
static final int MetadataVersionException
Bad version on executing metadata operations.- See Also:
- Constant Field Values
-
MetaStoreException
static final int MetaStoreException
Meta store operations failed.- See Also:
- Constant Field Values
-
ClientClosedException
static final int ClientClosedException
Executing operations on a closed client.- See Also:
- Constant Field Values
-
LedgerExistException
static final int LedgerExistException
Ledger already exists.- See Also:
- Constant Field Values
-
AddEntryQuorumTimeoutException
static final int AddEntryQuorumTimeoutException
Add entry operation timeouts on waiting quorum responses.- Since:
- 4.5
- See Also:
- Constant Field Values
-
DuplicateEntryIdException
static final int DuplicateEntryIdException
Duplicated entry id is found whenLedgerHandleAdv.addEntry(long, byte[])
.- Since:
- 4.5
- See Also:
- Constant Field Values
-
TimeoutException
static final int TimeoutException
Operations timeouts.- Since:
- 4.5
- See Also:
- Constant Field Values
-
SecurityException
static final int SecurityException
- See Also:
- Constant Field Values
-
NoSuchLedgerExistsOnMetadataServerException
static final int NoSuchLedgerExistsOnMetadataServerException
No such ledger exists one metadata server.- See Also:
- Constant Field Values
-
IllegalOpException
static final int IllegalOpException
Operation is illegal.- See Also:
- Constant Field Values
-
LedgerFencedException
static final int LedgerFencedException
Operations failed due to ledgers are fenced.- See Also:
- Constant Field Values
-
UnauthorizedAccessException
static final int UnauthorizedAccessException
Operations failed due to unauthorized.- See Also:
- Constant Field Values
-
UnclosedFragmentException
static final int UnclosedFragmentException
Replication failed due to unclosed fragments.- See Also:
- Constant Field Values
-
WriteOnReadOnlyBookieException
static final int WriteOnReadOnlyBookieException
Write operations failed due to bookies are readonly.- See Also:
- Constant Field Values
-
TooManyRequestsException
static final int TooManyRequestsException
Operations failed due to too many requests in the queue.- See Also:
- Constant Field Values
-
LedgerIdOverflowException
static final int LedgerIdOverflowException
Ledger id overflow happens on ledger manager.- Since:
- 4.5
- See Also:
- Constant Field Values
-
MetadataSerializationException
static final int MetadataSerializationException
Failure to serialize metadata.- Since:
- 4.9
- See Also:
- Constant Field Values
-
DataUnknownException
static final int DataUnknownException
Operations failed due to ledger data in an unknown state.- See Also:
- Constant Field Values
-
ReplicationException
static final int ReplicationException
Generic exception code used to propagate in replication pipeline.- See Also:
- Constant Field Values
-
UnexpectedConditionException
static final int UnexpectedConditionException
Unexpected condition.- See Also:
- Constant Field Values
-
-