Package com.couchbase.client.core.error
Class AuthenticationFailureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.couchbase.client.core.error.CouchbaseException
com.couchbase.client.core.error.AuthenticationFailureException
- All Implemented Interfaces:
Serializable
Every exception that has to do with authentication problems should either
instantiate or subclass from this type.
Note that some, for intentional security reasons, it is not always possible to disambiguate some failure conditions. So this exception can have multiple causes:
- Incorrect credentials have been supplied. - The bucket being accessed does not exist. - The bucket being accessed has been hibernated.
- Since:
- 2.0.0
- See Also:
-
Constructor Summary
ConstructorDescriptionAuthenticationFailureException
(String message, ErrorContext ctx, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptiononAuthError
(CancellationErrorContext errorContext, Throwable cause) onAuthError
(Request<? extends Response> request, Throwable cause) Must only be called on an AUTHENTICATION_ERROR RetryReason.Methods inherited from class com.couchbase.client.core.error.CouchbaseException
context, getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AuthenticationFailureException
-
-
Method Details
-
onAuthError
public static AuthenticationFailureException onAuthError(Request<? extends Response> request, Throwable cause) Must only be called on an AUTHENTICATION_ERROR RetryReason. -
onAuthError
public static AuthenticationFailureException onAuthError(CancellationErrorContext errorContext, @Nullable Throwable cause)
-