public class AuthenticationFailureException extends CouchbaseException
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.
| Constructor and Description |
|---|
AuthenticationFailureException(String message,
ErrorContext ctx,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
static AuthenticationFailureException |
onAuthError(CancellationErrorContext errorContext,
Throwable cause) |
static AuthenticationFailureException |
onAuthError(Request<? extends Response> request,
Throwable cause)
Must only be called on an AUTHENTICATION_ERROR RetryReason.
|
context, getMessageaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AuthenticationFailureException(String message, ErrorContext ctx, Throwable cause)
public static AuthenticationFailureException onAuthError(Request<? extends Response> request, Throwable cause)
public static AuthenticationFailureException onAuthError(CancellationErrorContext errorContext, @Nullable Throwable cause)
Copyright © 2024 Couchbase, Inc.. All rights reserved.