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
FieldsModifier and TypeFieldDescriptionstatic final intAdd entry operation timeouts on waiting quorum responses.static final intBookies are not available.static final intExecuting operations on a closed client.static final intOperations failed due to ledger data in an unknown state.static final intDigest doesn't match on returned entries.static final intDigest Manager is not initialized (client error).static final intDuplicated entry id is found whenLedgerHandleAdv.addEntry(long, byte[]).static final intOperation is illegal.static final intIncorrect parameters (operations are absolutely not executed).static final intSynchronous operations are interrupted.static final intExecuting operations on a closed ledger handle.static final intLedger already exists.static final intOperations failed due to ledgers are fenced.static final intLedger id overflow happens on ledger manager.static final intLedger recovery operations failed.static final intFailure to serialize metadata.static final intBad version on executing metadata operations.static final intMeta store operations failed.static final intUnused.static final intNo such entry exists.static final intNo such ledger exists.static final intNo such ledger exists one metadata server.static final intNot enough bookies available to form an ensemble.static final intEverything is OK.static final intProtocol version is wrong (operations are absolutely not executed).static final intUnused.static final intRead operations failed (bookie error).static final intGeneric exception code used to propagate in replication pipeline.static final intstatic final intOperations timeouts.static final intOperations failed due to too many requests in the queue.static final intOperations failed due to unauthorized.static final intReplication failed due to unclosed fragments.static final intUnexpected condition.static final intA placer holder (unused).static final intWrite operations failed (bookie error).static final intWrite operations failed due to bookies are readonly.static final intZooKeeper operations failed.
-
Field Details
-
UNINITIALIZED
static final int UNINITIALIZEDA placer holder (unused).- See Also:
-
OK
static final int OKEverything is OK.- See Also:
-
ReadException
static final int ReadExceptionRead operations failed (bookie error).- See Also:
-
QuorumException
static final int QuorumExceptionUnused.- See Also:
-
NoBookieAvailableException
static final int NoBookieAvailableExceptionUnused.- See Also:
-
DigestNotInitializedException
static final int DigestNotInitializedExceptionDigest Manager is not initialized (client error).- See Also:
-
DigestMatchException
static final int DigestMatchExceptionDigest doesn't match on returned entries.- See Also:
-
NotEnoughBookiesException
static final int NotEnoughBookiesExceptionNot enough bookies available to form an ensemble.- See Also:
-
NoSuchLedgerExistsException
static final int NoSuchLedgerExistsExceptionNo such ledger exists.- See Also:
-
BookieHandleNotAvailableException
static final int BookieHandleNotAvailableExceptionBookies are not available.- See Also:
-
ZKException
static final int ZKExceptionZooKeeper operations failed.- See Also:
-
LedgerRecoveryException
static final int LedgerRecoveryExceptionLedger recovery operations failed.- See Also:
-
LedgerClosedException
static final int LedgerClosedExceptionExecuting operations on a closed ledger handle.- See Also:
-
WriteException
static final int WriteExceptionWrite operations failed (bookie error).- See Also:
-
NoSuchEntryException
static final int NoSuchEntryExceptionNo such entry exists.- See Also:
-
IncorrectParameterException
static final int IncorrectParameterExceptionIncorrect parameters (operations are absolutely not executed).- See Also:
-
InterruptedException
static final int InterruptedExceptionSynchronous operations are interrupted.- See Also:
-
ProtocolVersionException
static final int ProtocolVersionExceptionProtocol version is wrong (operations are absolutely not executed).- See Also:
-
MetadataVersionException
static final int MetadataVersionExceptionBad version on executing metadata operations.- See Also:
-
MetaStoreException
static final int MetaStoreExceptionMeta store operations failed.- See Also:
-
ClientClosedException
static final int ClientClosedExceptionExecuting operations on a closed client.- See Also:
-
LedgerExistException
static final int LedgerExistExceptionLedger already exists.- See Also:
-
AddEntryQuorumTimeoutException
static final int AddEntryQuorumTimeoutExceptionAdd entry operation timeouts on waiting quorum responses.- Since:
- 4.5
- See Also:
-
DuplicateEntryIdException
static final int DuplicateEntryIdExceptionDuplicated entry id is found whenLedgerHandleAdv.addEntry(long, byte[]).- Since:
- 4.5
- See Also:
-
TimeoutException
static final int TimeoutExceptionOperations timeouts.- Since:
- 4.5
- See Also:
-
SecurityException
static final int SecurityException- See Also:
-
NoSuchLedgerExistsOnMetadataServerException
static final int NoSuchLedgerExistsOnMetadataServerExceptionNo such ledger exists one metadata server.- See Also:
-
IllegalOpException
static final int IllegalOpExceptionOperation is illegal.- See Also:
-
LedgerFencedException
static final int LedgerFencedExceptionOperations failed due to ledgers are fenced.- See Also:
-
UnauthorizedAccessException
static final int UnauthorizedAccessExceptionOperations failed due to unauthorized.- See Also:
-
UnclosedFragmentException
static final int UnclosedFragmentExceptionReplication failed due to unclosed fragments.- See Also:
-
WriteOnReadOnlyBookieException
static final int WriteOnReadOnlyBookieExceptionWrite operations failed due to bookies are readonly.- See Also:
-
TooManyRequestsException
static final int TooManyRequestsExceptionOperations failed due to too many requests in the queue.- See Also:
-
LedgerIdOverflowException
static final int LedgerIdOverflowExceptionLedger id overflow happens on ledger manager.- Since:
- 4.5
- See Also:
-
MetadataSerializationException
static final int MetadataSerializationExceptionFailure to serialize metadata.- Since:
- 4.9
- See Also:
-
DataUnknownException
static final int DataUnknownExceptionOperations failed due to ledger data in an unknown state.- See Also:
-
ReplicationException
static final int ReplicationExceptionGeneric exception code used to propagate in replication pipeline.- See Also:
-
UnexpectedConditionException
static final int UnexpectedConditionExceptionUnexpected condition.- See Also:
-