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:
AlreadyShutdownException,AnalyticsException,AuthenticationFailureException,BucketExistsException,BucketNotFlushableException,BucketNotFoundException,CasMismatchException,CollectionExistsException,CollectionNotFoundException,CompilationFailureException,ConfigException,DatasetExistsException,DatasetNotFoundException,DataverseExistsException,DataverseNotFoundException,DecodingFailureException,DeltaInvalidException,DesignDocumentNotFoundException,DmlFailureException,DocumentExistsException,DocumentLockedException,DocumentMutationLostException,DocumentNotFoundException,DocumentNotJsonException,DocumentTooDeepException,DocumentUnretrievableException,DurabilityAmbiguousException,DurabilityImpossibleException,DurabilityLevelNotAvailableException,DurableWriteInProgressException,DurableWriteReCommitInProgressException,EncodingFailureException,EventingFunctionCompilationFailureException,EventingFunctionDeployedException,EventingFunctionIdenticalKeyspaceException,EventingFunctionNotBootstrappedException,EventingFunctionNotDeployedException,EventingFunctionNotFoundException,FeatureNotAvailableException,GroupNotFoundException,HttpStatusCodeException,IndexExistsException,IndexFailureException,IndexNotFoundException,InternalServerFailureException,InvalidArgumentException,JobQueueFullException,LinkExistsException,LinkNotFoundException,MapperException,MeterException,NumberTooBigException,OperationDoesNotExist,ParsingFailureException,PathExistsException,PathInvalidException,PathMismatchException,PathNotFoundException,PathTooDeepException,PlanningFailureException,PreparedStatementFailureException,QueryException,ReplicaNotAvailableException,ReplicaNotConfiguredException,RequestCanceledException,ScopeExistsException,ScopeNotFoundException,SecurityException,ServerOutOfMemoryException,ServiceNotAvailableException,TemporaryFailureException,TimeoutException,TracerException,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 ErrorContextcontext()Returns the error context, if present.StringgetMessage()-
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:
getMessagein classThrowable
-
context
@Uncommitted public ErrorContext context()
Returns the error context, if present.
-
-