| Modifier and Type | Class and Description |
|---|---|
class |
InvalidPropertyException
Thrown when an environment config property cannot be applied.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AlreadyShutdownException
Thrown if a resource is already permanently terminated and tried to be used afterwards.
|
class |
AmbiguousTimeoutException
This is a special case of the timeout exception, signaling that the timeout happened with an ambiguous cause.
|
class |
AnalyticsException
There was a problem fulfilling the analytics request.
|
class |
AuthenticationFailureException
Every exception that has to do with authentication problems should either
instantiate or subclass from this type.
|
class |
BucketExistsException |
class |
BucketNotFlushableException |
class |
BucketNotFoundDuringLoadException
Exception raised if during config load the bucket is not found (think: http 404).
|
class |
BucketNotFoundException |
class |
BucketNotReadyDuringLoadException
Exception raised if during config load the bucket is found, but not deemed ready yet.
|
class |
CasMismatchException
Indicates an optimistic locking failure.
|
class |
CollectionExistsException |
class |
CollectionNotFoundException |
class |
CompilationFailureException
The query failed to compile.
|
class |
ConfigException |
class |
CoreErrorCodeAndMessageException
This is an internal exception the user should never see;
The SDK should translate it to some other exception before
presenting it to the user.
|
class |
DatasetExistsException |
class |
DatasetNotFoundException
The queried dataset is not found on the server.
|
class |
DataverseExistsException |
class |
DataverseNotFoundException |
class |
DecodingFailureException
Raised when provided content could not be successfully decoded.
|
class |
DesignDocumentNotFoundException |
class |
DmlFailureException
This exception is raised when the server fails to execute a DML query.
|
class |
DocumentExistsException
Indicates an operation failed because the key already exists.
|
class |
DocumentLockedException
Thrown when the server reports a temporary failure that
is very likely to be lock-related (like an already locked
key or a bad cas used for unlock).
|
class |
DocumentMutationLostException |
class |
DocumentNotFoundException
Indicates an operation failed because the key does not exist.
|
class |
DocumentNotLockedException
Thrown when the server reports the document is already locked - generally raised when an unlocking operation is
being performed.
|
class |
DocumentUnretrievableException
Indicates an operation completed but no successful document was retrievable.
|
class |
DurabilityAmbiguousException
Naming TBD!
The synchronous replication durability work can return an ambiguous error (or we timeout waiting for the response,
which is effectively the same).
|
class |
DurabilityImpossibleException
The given durability requirements are currently impossible to achieve, as not enough configured replicas
are currently available.
|
class |
DurabilityLevelNotAvailableException
This exception is raised when a durability level has been requested that is not available on the server.
|
class |
DurableWriteInProgressException
Returned if an attempt is made to mutate a key which already has a durable write pending.
|
class |
DurableWriteReCommitInProgressException
The requested key has a SyncWrite which is being re-committed.
|
class |
EncodingFailureException
Raised when provided content could not be successfully encoded.
|
class |
EventingFunctionCompilationFailureException
Raised if the eventing function failed to compile on the server.
|
class |
EventingFunctionDeployedException
Raised if the eventing function is currently deployed.
|
class |
EventingFunctionIdenticalKeyspaceException
Raised if the source and metadata keyspace are the same.
|
class |
EventingFunctionNotBootstrappedException
Raised if the eventing function is not bootstrapped at the time of request.
|
class |
EventingFunctionNotDeployedException
Raised if the eventing function is not deployed.
|
class |
EventingFunctionNotFoundException
Raised if the eventing function is not found.
|
class |
FeatureNotAvailableException
Exception which states that the feature is not available for the bucket.
|
class |
GlobalConfigNotFoundException
Exception thrown if global configs are supported but the server tells the client that there is currently
non available.
|
class |
GroupNotFoundException |
class |
HttpStatusCodeException |
class |
IndexExistsException |
class |
IndexFailureException
Indicates an operation failed because there has been an issue with the query planner or similar.
|
class |
IndexNotFoundException |
class |
InternalServerFailureException
Indicates an operation failed because there has been an internal error in the server.
|
class |
InvalidArgumentException |
class |
InvalidRequestException |
class |
JobQueueFullException
Indicates the analytics server job queue is full
|
class |
LinkExistsException |
class |
LinkNotFoundException |
class |
MeterException
Generic exception that captures all meter-related errors.
|
class |
MutationTokenOutdatedException |
class |
NoAccessDuringConfigLoadException |
class |
OperationDoesNotExist
Raised when a requested subdoc operation does not exist.
|
class |
ParsingFailureException
Indicates an operation failed because parsing of the input returned with an error.
|
class |
PlanningFailureException
Indicates an operation failed because there has been an issue with the query planner.
|
class |
PreparedStatementFailureException
Indicates an operation failed because there has been an issue with query prepared statements.
|
class |
QueryException
There was a problem fulfilling the query request.
|
class |
QuotaLimitedException
This error is raised if the operation failed due to hitting a quota-limit on the server side.
|
class |
RangeScanPartitionFailedException
This is an internal exception used to signal exceptional states in the range scan orchestrator.
|
class |
RateLimitedException
This error is raised if the operation failed due to hitting a rate-limit on the server side.
|
class |
ReplicaNotAvailableException |
class |
ReplicaNotConfiguredException |
class |
RequestCanceledException |
class |
ScopeExistsException |
class |
ScopeNotFoundException |
class |
SecurityException |
class |
SeedNodeOutdatedException
Used to signal that the seed node used for an operation is outdated and might need to be refreshed.
|
class |
ServerOutOfMemoryException
Thrown when Couchbase Server returns with an Out of Memory error.
|
class |
ServiceNotAvailableException
Exception which states that the service is not available for the bucket.
|
class |
TemporaryFailureException
Thrown when the server reports a temporary failure.
|
class |
TimeoutException
The
TimeoutException signals that an operation timed out before it could be completed. |
class |
TooManyInstancesException
Raised if more SDK instances are created than allowed in configuration.
|
class |
TracerException
Generic exception that captures all tracer-related errors.
|
class |
UnambiguousTimeoutException
This is a special case of the timeout exception, signaling that the timeout happened with no ambiguous cause.
|
class |
UnsupportedConfigMechanismException |
class |
UserNotFoundException |
class |
ValueTooLargeException
Thrown when the request is too big for some reason.
|
class |
ViewNotFoundException |
class |
ViewServiceException
There was a problem fulfilling the view request.
|
| Modifier and Type | Method and Description |
|---|---|
static CouchbaseException |
DefaultErrorUtil.keyValueStatusToException(KeyValueRequest<? extends Response> request,
Response response)
Maps common KV response status codes to their corresponding user-level exceptions.
|
static CouchbaseException |
DefaultErrorUtil.keyValueStatusToException(KeyValueRequest<? extends Response> request,
ResponseStatus status,
KeyValueErrorContext ctx,
String defaultErrorString) |
static CouchbaseException |
FeatureNotAvailableException.queryUseReplica(String message) |
static CouchbaseException |
FeatureNotAvailableException.subdocReadReplica() |
| Modifier and Type | Class and Description |
|---|---|
class |
DeltaInvalidException
Subdocument exception thrown when the delta in an arithmetic operation (eg counter) is invalid.
|
class |
DocumentAlreadyAliveException
Sub-Document exception thrown when ReviveDocument has been used with a document that already exists
|
class |
DocumentNotJsonException
Subdocument exception thrown when the targeted enclosing document itself is not JSON.
|
class |
DocumentTooDeepException
Subdocument exception thrown when document is too deep to parse.
|
class |
NumberTooBigException
Subdocument exception thrown when existing number value in document is too big.
|
class |
PathExistsException
Subdocument exception thrown when a path already exists and it shouldn't
|
class |
PathInvalidException
Subdocument exception thrown when path has a syntax error, or path syntax is incorrect for the operation
(for example, if operation requires an array index).
|
class |
PathMismatchException
Subdocument exception thrown when the path structure conflicts with the document structure
(for example, if a path mentions foo.bar[0].baz, but foo.bar is actually a JSON object).
|
class |
PathNotFoundException
Subdocument exception thrown when a path does not exist in the document.
|
class |
PathTooDeepException
Subdocument exception thrown when path is too deep to parse.
|
class |
ValueInvalidException
Subdocument exception thrown when the provided value cannot be inserted at the given path.
|
class |
ValueTooDeepException
Subdocument exception thrown when proposed value would make the document too deep to parse.
|
class |
XattrCannotModifyVirtualAttributeException
Subdocument exception thrown when the virtual attribute cannot be modified.
|
class |
XattrInvalidFlagComboException
Deprecated.
|
class |
XattrInvalidKeyComboException
Subdocument exception thrown when more than one xattr key has been requested.
|
class |
XattrInvalidOrderException
Deprecated.
|
class |
XattrNoAccessException
Subdocument exception thrown when an extended attribute cannot be accessed.
|
class |
XattrUnknownMacroException
Subdocument exception thrown when a macro has been requested which is not recognised by the server.
|
class |
XattrUnknownVirtualAttributeException
Subdocument exception thrown when a virtual attribute has been requested which is not recognised by the server.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ActiveTransactionRecordEntryNotFoundException |
class |
ActiveTransactionRecordFullException |
class |
ActiveTransactionRecordNotFoundException |
class |
AttemptExpiredException |
class |
AttemptNotFoundOnQueryException
Query does not recognise the passed txid.
|
class |
CommitNotPermittedException
The transaction is not allowed to commit in the current state.
|
class |
ConcurrentOperationsDetectedOnSameDocumentException
Concurrent Key-Value operations on the same document have been detected.
|
class |
DocumentAlreadyInTransactionException |
class |
ForwardCompatibilityFailureException
This transaction has been prevented from interacting with documents or metadata owned by another transaction,
due to compatibility issues.
|
class |
PreviousOperationFailedException
A previous operation in the application's lambda failed, and so the currently-attempt operation is also not
permitted to proceed.
|
class |
RetryTransactionException
Indicates that this transaction should be retried.
|
class |
RollbackNotPermittedException
The transaction is not allowed to rollback in the current state.
|
class |
TransactionAlreadyAbortedException |
class |
TransactionAlreadyCommittedException |
class |
TransactionOperationFailedException
This operation (such as a replace, get or insert) either failed or ambiguously succeeded.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CoreTransactionCommitAmbiguousException
The transaction expired at the point of trying to commit it.
|
class |
CoreTransactionExpiredException
The transaction could not be fully completed in the configured timeout.
|
class |
CoreTransactionFailedException
The transaction failed to reach the Committed point.
|
class |
ForwardCompatibilityRequiresRetryException |
class |
RetryAtrCommitException
Indicates that committing the ATR entry should be retried.
|
class |
RetryOperationException
Indicates that this operation should be retried.
|
class |
TestFailAmbiguousException
Used only in testing: injects an error that will be handled as FAIL_AMBIGUOUS.
|
class |
TestFailHardException
Used only in testing: injects an error that will be handled as FAIL_HARD.
|
class |
TestFailOtherException
Used only in testing: injects an error that will be handled as FAIL_OTHER.
|
class |
TestFailTransientException
Used only in testing: injects a FAIL_TRANSIENT error.
|
class |
ThreadStopRequestedException |
| Modifier and Type | Method and Description |
|---|---|
Optional<CouchbaseException> |
AnalyticsChunkResponseParser.error() |
| Modifier and Type | Method and Description |
|---|---|
protected Optional<RetryReason> |
AnalyticsMessageHandler.qualifiesForRetry(CouchbaseException exception) |
| Modifier and Type | Method and Description |
|---|---|
Optional<CouchbaseException> |
BaseChunkResponseParser.decodingFailure() |
Optional<CouchbaseException> |
ChunkResponseParser.decodingFailure()
If the parser fails due to malformed input the cause is returned here.
|
Optional<CouchbaseException> |
ChunkResponseParser.error()
If the parser sees an error, it should fill this optional so that if the IO
layer needs to fail the topmost future it will be passed in.
|
| Modifier and Type | Method and Description |
|---|---|
protected Optional<RetryReason> |
ChunkedMessageHandler.qualifiesForRetry(CouchbaseException exception)
Can be implemented by children to not fail a request but rather send it into retry.
|
| Modifier and Type | Method and Description |
|---|---|
static CouchbaseException |
MemcacheProtocol.mapSubDocumentError(KeyValueRequest<?> request,
SubDocumentOpResponseStatus status,
String path,
int index,
MemcacheProtocol.FlexibleExtras flexibleExtras)
For any response that can be returned by a SubDocument command - path, document, or execution-based - map it to
an appropriate SubDocumentException.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<CouchbaseException> |
QueryChunkResponseParser.error() |
| Modifier and Type | Method and Description |
|---|---|
protected Optional<RetryReason> |
QueryMessageHandler.qualifiesForRetry(CouchbaseException exception) |
| Modifier and Type | Method and Description |
|---|---|
Optional<CouchbaseException> |
SearchChunkResponseParser.error() |
| Modifier and Type | Method and Description |
|---|---|
Optional<CouchbaseException> |
ViewChunkResponseParser.error() |
| Modifier and Type | Class and Description |
|---|---|
class |
MapperException
This exception is usually raised when a JSON encoding or decoding was not successful.
|
| Modifier and Type | Method and Description |
|---|---|
static CouchbaseException |
SubdocUtil.handleNonFieldLevelErrors(BaseKeyValueRequest<?> request,
short status,
MemcacheProtocol.FlexibleExtras flexibleExtras,
String serverError)
These are errors that will result in the mutateIn or lookupIn call failing with an exception.
|
CouchbaseException |
SubdocMutateResponse.throwError(SubdocMutateRequest request,
boolean insertDocument) |
| Modifier and Type | Method and Description |
|---|---|
Optional<CouchbaseException> |
SubdocMutateResponse.error()
A top-level exception that will be thrown from the mutateIn() call.
|
Optional<CouchbaseException> |
SubDocumentField.error() |
Optional<CouchbaseException> |
SubdocGetResponse.error()
A top-level exception that will be thrown from the lookupIn() call.
|
| Constructor and Description |
|---|
SubdocGetResponse(ResponseStatus status,
Optional<CouchbaseException> error,
SubDocumentField[] values,
long cas,
boolean isDeleted,
MemcacheProtocol.FlexibleExtras flexibleExtras) |
SubdocMutateResponse(ResponseStatus status,
Optional<CouchbaseException> error,
SubDocumentField[] values,
long cas,
Optional<MutationToken> mutationToken,
MemcacheProtocol.FlexibleExtras flexibleExtras) |
SubDocumentField(SubDocumentOpResponseStatus status,
Optional<CouchbaseException> error,
byte[] value,
String path,
SubdocCommandType type) |
Copyright © 2024 Couchbase, Inc.. All rights reserved.