Package jakarta.mail

Class AuthenticationFailedException

All Implemented Interfaces:
Serializable

public class AuthenticationFailedException extends MessagingException
This exception is thrown when the connect method on a Store or Transport object fails due to an authentication failure (e.g., bad user name or password).
See Also:
  • Constructor Details

    • AuthenticationFailedException

      public AuthenticationFailedException()
      Constructs an AuthenticationFailedException.
    • AuthenticationFailedException

      public AuthenticationFailedException(String message)
      Constructs an AuthenticationFailedException with the specified detail message.
      Parameters:
      message - The detailed error message
    • AuthenticationFailedException

      public AuthenticationFailedException(String message, Exception e)
      Constructs an AuthenticationFailedException with the specified detail message and embedded exception. The exception is chained to this exception.
      Parameters:
      message - The detailed error message
      e - The embedded exception
      Since:
      JavaMail 1.5