Class AuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.loomcache.common.exception.LoomException
com.loomcache.common.exception.AuthenticationException
- All Implemented Interfaces:
Serializable
Thrown when authentication fails.
This exception indicates that a client's credentials are invalid, expired, or missing. This is a placeholder for future authentication/authorization features.
Common causes include: - Invalid or expired credentials - Missing authentication token - Insufficient permissions - Authentication server unavailable
- Since:
- 1.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration of authentication error types. -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationException(String message) Creates a new AuthenticationException with message.AuthenticationException(String message, @Nullable String principal, AuthenticationException.AuthError errorType, Throwable cause) Creates a new AuthenticationException with detailed information.AuthenticationException(String message, Throwable cause) Creates a new AuthenticationException with message and cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AuthenticationException
Creates a new AuthenticationException with message.- Parameters:
message- the error message
-
AuthenticationException
-
AuthenticationException
public AuthenticationException(String message, @Nullable String principal, AuthenticationException.AuthError errorType, Throwable cause) Creates a new AuthenticationException with detailed information.- Parameters:
message- the error messageprincipal- the principal (user/service) that failed authenticationerrorType- the type of authentication errorcause- the underlying cause
-