Top Description Fields Constructors Methods
javax.mail

public Class AuthenticationFailedException

extends MessagingException
Class Inheritance
Known Direct Subclasses
com.sun.mail.imap.ReferralException

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

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
AuthenticationFailedException()

Constructs an AuthenticationFailedException.

public
AuthenticationFailedException(String
The detailed error message
message
)

Constructs an AuthenticationFailedException with the specified detail message.

public
AuthenticationFailedException(String
The detailed error message
message
,
Exception
The embedded exception
e
)

Constructs an AuthenticationFailedException with the specified detail message and embedded exception.

Method Summary

Inherited from javax.mail.MessagingException:
getCausegetNextExceptionsetNextExceptiontoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.mail.MessagingException.serialVersionUID.

Constructor Detail

AuthenticationFailedExceptionback to summary
public AuthenticationFailedException()

Constructs an AuthenticationFailedException.

AuthenticationFailedExceptionback to summary
public AuthenticationFailedException(String message)

Constructs an AuthenticationFailedException with the specified detail message.

Parameters
message:String

The detailed error message

AuthenticationFailedExceptionback to summary
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:String

The detailed error message

e:Exception

The embedded exception

Since
JavaMail 1.5