Package org.apache.bookkeeper.client.api
Interface BKException.Code
-
- All Known Subinterfaces:
BKException.Code
- Enclosing class:
- BKException
public static interface BKException.CodeCodes which represent the various exception types.
-
-
Field Summary
Fields Modifier and Type Field Description static intAddEntryQuorumTimeoutExceptionAdd entry operation timeouts on waiting quorum responses.static intBookieHandleNotAvailableExceptionBookies are not available.static intClientClosedExceptionExecuting operations on a closed client.static intDataUnknownExceptionOperations failed due to ledger data in an unknown state.static intDigestMatchExceptionDigest doesn't match on returned entries.static intDigestNotInitializedExceptionDigest Manager is not initialized (client error).static intDuplicateEntryIdExceptionDuplicated entry id is found whenLedgerHandleAdv.addEntry(long, byte[]).static intIllegalOpExceptionOperation is illegal.static intIncorrectParameterExceptionIncorrect parameters (operations are absolutely not executed).static intInterruptedExceptionSynchronous operations are interrupted.static intLedgerClosedExceptionExecuting operations on a closed ledger handle.static intLedgerExistExceptionLedger already exists.static intLedgerFencedExceptionOperations failed due to ledgers are fenced.static intLedgerIdOverflowExceptionLedger id overflow happens on ledger manager.static intLedgerRecoveryExceptionLedger recovery operations failed.static intMetadataSerializationExceptionFailure to serialize metadata.static intMetadataVersionExceptionBad version on executing metadata operations.static intMetaStoreExceptionMeta store operations failed.static intNoBookieAvailableExceptionUnused.static intNoSuchEntryExceptionNo such entry exists.static intNoSuchLedgerExistsExceptionNo such ledger exists.static intNoSuchLedgerExistsOnMetadataServerExceptionNo such ledger exists one metadata server.static intNotEnoughBookiesExceptionNot enough bookies available to form an ensemble.static intOKEverything is OK.static intProtocolVersionExceptionProtocol version is wrong (operations are absolutely not executed).static intQuorumExceptionUnused.static intReadExceptionRead operations failed (bookie error).static intReplicationExceptionGeneric exception code used to propagate in replication pipeline.static intSecurityExceptionstatic intTimeoutExceptionOperations timeouts.static intTooManyRequestsExceptionOperations failed due to too many requests in the queue.static intUnauthorizedAccessExceptionOperations failed due to unauthorized.static intUnclosedFragmentExceptionReplication failed due to unclosed fragments.static intUnexpectedConditionExceptionUnexpected condition.static intUNINITIALIZEDA placer holder (unused).static intWriteExceptionWrite operations failed (bookie error).static intWriteOnReadOnlyBookieExceptionWrite operations failed due to bookies are readonly.static intZKExceptionZooKeeper 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
-
-