- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- jakarta.mail.MessagingException
- 
- jakarta.mail.AuthenticationFailedException
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.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).- Author:
- Bill Shannon
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description AuthenticationFailedException()Constructs an AuthenticationFailedException.AuthenticationFailedException(java.lang.String message)Constructs an AuthenticationFailedException with the specified detail message.AuthenticationFailedException(java.lang.String message, java.lang.Exception e)Constructs an AuthenticationFailedException with the specified detail message and embedded exception.
 - 
Method Summary- 
Methods inherited from class jakarta.mail.MessagingExceptiongetCause, getNextException, setNextException, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
AuthenticationFailedExceptionpublic AuthenticationFailedException() Constructs an AuthenticationFailedException.
 - 
AuthenticationFailedExceptionpublic AuthenticationFailedException(java.lang.String message) Constructs an AuthenticationFailedException with the specified detail message.- Parameters:
- message- The detailed error message
 
 - 
AuthenticationFailedExceptionpublic AuthenticationFailedException(java.lang.String message, java.lang.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
 
 
- 
 
-