javax.mail.internet
类 AddressException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 javax.mail.MessagingException
              继承者 javax.mail.internet.ParseException
                  继承者 javax.mail.internet.AddressException
所有已实现的接口:
Serializable

public class AddressException
extends ParseException

The exception thrown when a wrongly formatted address is encountered.

作者:
Bill Shannon, Max Spivak
另请参见:
序列化表格

字段摘要
protected  int pos
          The index in the string where the error occurred, or -1 if not known.
protected  String ref
          The string being parsed.
 
构造方法摘要
AddressException()
          Constructs an AddressException with no detail message.
AddressException(String s)
          Constructs an AddressException with the specified detail message.
AddressException(String s, String ref)
          Constructs an AddressException with the specified detail message and reference info.
AddressException(String s, String ref, int pos)
          Constructs an AddressException with the specified detail message and reference info.
 
方法摘要
 int getPos()
          Get the position with the reference string where the error was detected (-1 if not relevant).
 String getRef()
          Get the string that was being parsed when the error was detected (null if not relevant).
 String toString()
          Override toString method to provide information on nested exceptions.
 
从类 javax.mail.MessagingException 继承的方法
getCause, getNextException, setNextException
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

ref

protected String ref
The string being parsed.


pos

protected int pos
The index in the string where the error occurred, or -1 if not known.

构造方法详细信息

AddressException

public AddressException()
Constructs an AddressException with no detail message.


AddressException

public AddressException(String s)
Constructs an AddressException with the specified detail message.

参数:
s - the detail message

AddressException

public AddressException(String s,
                        String ref)
Constructs an AddressException with the specified detail message and reference info.

参数:
s - the detail message

AddressException

public AddressException(String s,
                        String ref,
                        int pos)
Constructs an AddressException with the specified detail message and reference info.

参数:
s - the detail message
方法详细信息

getRef

public String getRef()
Get the string that was being parsed when the error was detected (null if not relevant).


getPos

public int getPos()
Get the position with the reference string where the error was detected (-1 if not relevant).


toString

public String toString()
从类 MessagingException 复制的描述
Override toString method to provide information on nested exceptions.

覆盖:
MessagingException 中的 toString


Copyright © 2013. All Rights Reserved.