Class AuthenticationException

All Implemented Interfaces:
Serializable

public final class AuthenticationException extends LoomException
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:
  • Constructor Details

    • AuthenticationException

      public AuthenticationException(String message)
      Creates a new AuthenticationException with message.
      Parameters:
      message - the error message
    • AuthenticationException

      public AuthenticationException(String message, Throwable cause)
      Creates a new AuthenticationException with message and cause.
      Parameters:
      message - the error message
      cause - the underlying cause
    • AuthenticationException

      public AuthenticationException(String message, @Nullable String principal, AuthenticationException.AuthError errorType, Throwable cause)
      Creates a new AuthenticationException with detailed information.
      Parameters:
      message - the error message
      principal - the principal (user/service) that failed authentication
      errorType - the type of authentication error
      cause - the underlying cause