Package jakarta.mail
Class AuthenticationFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jakarta.mail.MessagingException
jakarta.mail.AuthenticationFailedException
- All Implemented Interfaces:
Serializable
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).
- Author:
- Bill Shannon
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs an AuthenticationFailedException.AuthenticationFailedException
(String message) Constructs an AuthenticationFailedException with the specified detail message.AuthenticationFailedException
(String message, Exception e) Constructs an AuthenticationFailedException with the specified detail message and embedded exception. -
Method Summary
Methods inherited from class jakarta.mail.MessagingException
getCause, getNextException, setNextException, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
AuthenticationFailedException
public AuthenticationFailedException()Constructs an AuthenticationFailedException. -
AuthenticationFailedException
Constructs an AuthenticationFailedException with the specified detail message.- Parameters:
message
- The detailed error message
-
AuthenticationFailedException
Constructs an AuthenticationFailedException with the specified detail message and embedded exception. The exception is chained to this exception.- Parameters:
message
- The detailed error messagee
- The embedded exception- Since:
- JavaMail 1.5
-