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
public class AuthenticationFailureException extends CouchbaseException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthenticationFailureException(String message, ErrorContext ctx, Throwable cause)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.-
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 Detail
-
AuthenticationFailureException
public AuthenticationFailureException(String message, ErrorContext ctx, Throwable cause)
-
-
Method Detail
-
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)
-
-