Package com.couchbase.client.core.error
Class CouchbaseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.couchbase.client.core.error.CouchbaseException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ActiveTransactionRecordEntryNotFoundException
,ActiveTransactionRecordFullException
,ActiveTransactionRecordNotFoundException
,AlreadyShutdownException
,AnalyticsException
,AttemptExpiredException
,AttemptNotFoundOnQueryException
,AuthenticationFailureException
,BucketExistsException
,BucketNotFlushableException
,BucketNotFoundException
,CasMismatchException
,CollectionExistsException
,CollectionNotFoundException
,CommitNotPermittedException
,CompilationFailureException
,ConcurrentOperationsDetectedOnSameDocumentException
,ConfigException
,CoreTransactionFailedException
,DatasetExistsException
,DatasetNotFoundException
,DataverseExistsException
,DataverseNotFoundException
,DecodingFailureException
,DeltaInvalidException
,DesignDocumentNotFoundException
,DmlFailureException
,DocumentAlreadyAliveException
,DocumentAlreadyInTransactionException
,DocumentExistsException
,DocumentLockedException
,DocumentMutationLostException
,DocumentNotFoundException
,DocumentNotJsonException
,DocumentTooDeepException
,DocumentUnretrievableException
,DurabilityAmbiguousException
,DurabilityImpossibleException
,DurabilityLevelNotAvailableException
,DurableWriteInProgressException
,DurableWriteReCommitInProgressException
,EncodingFailureException
,EventingFunctionCompilationFailureException
,EventingFunctionDeployedException
,EventingFunctionIdenticalKeyspaceException
,EventingFunctionNotBootstrappedException
,EventingFunctionNotDeployedException
,EventingFunctionNotFoundException
,FeatureNotAvailableException
,ForwardCompatibilityFailureException
,ForwardCompatibilityRequiresRetryException
,GroupNotFoundException
,HttpStatusCodeException
,IndexExistsException
,IndexFailureException
,IndexNotFoundException
,InternalServerFailureException
,InvalidArgumentException
,JobQueueFullException
,LinkExistsException
,LinkNotFoundException
,MapperException
,MeterException
,NumberTooBigException
,OperationDoesNotExist
,ParsingFailureException
,PathExistsException
,PathInvalidException
,PathMismatchException
,PathNotFoundException
,PathTooDeepException
,PlanningFailureException
,PreparedStatementFailureException
,PreviousOperationFailedException
,QueryException
,QuotaLimitedException
,RateLimitedException
,ReplicaNotAvailableException
,ReplicaNotConfiguredException
,RequestCanceledException
,RetryAtrCommitException
,RetryOperationException
,RetryTransactionException
,RollbackNotPermittedException
,ScopeExistsException
,ScopeNotFoundException
,SecurityException
,ServerOutOfMemoryException
,ServiceNotAvailableException
,TemporaryFailureException
,TestFailAmbiguousException
,TestFailHardException
,TestFailOtherException
,TestFailTransientException
,ThreadStopRequestedException
,TimeoutException
,TracerException
,TransactionAlreadyAbortedException
,TransactionAlreadyCommittedException
,TransactionOperationFailedException
,UserNotFoundException
,ValueInvalidException
,ValueTooDeepException
,ValueTooLargeException
,ViewNotFoundException
,ViewServiceException
,XattrCannotModifyVirtualAttributeException
,XattrInvalidFlagComboException
,XattrInvalidKeyComboException
,XattrInvalidOrderException
,XattrNoAccessException
,XattrUnknownMacroException
,XattrUnknownVirtualAttributeException
public class CouchbaseException extends RuntimeException
The parent class for all exceptions created by this SDK (or clients using it).- Since:
- 2.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CouchbaseException()
Deprecated.CouchbaseException(String message)
CouchbaseException(String message, ErrorContext ctx)
CouchbaseException(String message, Throwable cause)
CouchbaseException(String message, Throwable cause, ErrorContext ctx)
CouchbaseException(Throwable cause)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorContext
context()
Returns the error context, if present.String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CouchbaseException
@Deprecated public CouchbaseException()
Deprecated.Keeping it in there to not break left and right, but must be removed eventually to force good errors.
-
CouchbaseException
@Deprecated public CouchbaseException(Throwable cause)
Deprecated.Keeping it in there to not break left and right, but must be removed eventually to force good errors.
-
CouchbaseException
public CouchbaseException(String message)
-
CouchbaseException
public CouchbaseException(String message, ErrorContext ctx)
-
CouchbaseException
public CouchbaseException(String message, Throwable cause, ErrorContext ctx)
-
-
Method Detail
-
getMessage
public final String getMessage()
- Overrides:
getMessage
in classThrowable
-
context
@Uncommitted public ErrorContext context()
Returns the error context, if present.
-
-