Package com.couchbase.client.core
Class ReplicaNotConfiguredException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.couchbase.client.core.CouchbaseException
-
- com.couchbase.client.core.ReplicaNotConfiguredException
-
- All Implemented Interfaces:
OriginalMutationResult
,Serializable
public class ReplicaNotConfiguredException extends CouchbaseException implements OriginalMutationResult
This exception is thrown when the given operation targeting a specific replica is not fulfillable because the replica is not configured (for example replica 2 is asked for, but only 1 is configured).- Since:
- 1.0.0
- Author:
- Michael Nitschinger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReplicaNotConfiguredException(String message, Long cas)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
mutationCas()
If the originating operation used to be a mutation and was successful, this getter allows to retrieve the cas value returned.-
Methods inherited from class com.couchbase.client.core.CouchbaseException
details, details, getMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
mutationCas
public long mutationCas()
Description copied from interface:OriginalMutationResult
If the originating operation used to be a mutation and was successful, this getter allows to retrieve the cas value returned.- Specified by:
mutationCas
in interfaceOriginalMutationResult
- Returns:
- a long case value or an exception otherwise.
-
-