AuthenticationFailedException (Java EE 5)

Java EE API


javax.mail Class AuthenticationFailedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.mail.MessagingException
              extended by javax.mail.AuthenticationFailedException
All Implemented Interfaces:
Serializable

public class AuthenticationFailedException
extends MessagingException

Extends: Throwable > Exception > MessagingException

当由于验证失败(例如,错误的用户名或密码)而导致 Store 或 Transport 对象上的 connect 方法失败时,抛出此异常。
英文文档:

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 Summary
 
Method Summary
 
Methods inherited from class javax.mail.MessagingException
 
Methods inherited from class java.lang.Throwable
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public AuthenticationFailedException()
Constructor
英文文档:

AuthenticationFailedException

public AuthenticationFailedException()
Constructor


public AuthenticationFailedException(String message)
Constructor
message 详细的错误消息
英文文档:

AuthenticationFailedException

public AuthenticationFailedException(String message)
Constructor

Parameters:
message - The detailed error message



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!