Home » apache-tomcat-6.0.26-src » javax » mail » internet » [javadoc | source]
javax.mail.internet
public class: AddressException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         javax.mail.MessagingException
            javax.mail.internet.ParseException
               javax.mail.internet.AddressException

All Implemented Interfaces:
    Serializable

The exception thrown when a wrongly formatted address is encountered.
Field Summary
protected  String ref    The string being parsed.
    serial:
 
protected  int pos    The index in the string where the error occurred, or -1 if not known.
    serial:
 
Fields inherited from java.lang.Exception:
serialVersionUID
Constructor:
 public AddressException() 
 public AddressException(String s) 
    Constructs an AddressException with the specified detail message.
    Parameters:
    s - the detail message
 public AddressException(String s,
    String ref) 
    Constructs an AddressException with the specified detail message and reference info.
    Parameters:
    s - the detail message
 public AddressException(String s,
    String ref,
    int pos) 
    Constructs an AddressException with the specified detail message and reference info.
    Parameters:
    s - the detail message
Method from javax.mail.internet.AddressException Summary:
getPos,   getRef,   toString
Methods from javax.mail.MessagingException:
getCause,   getNextException,   setNextException,   toString
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.mail.internet.AddressException Detail:
 public int getPos() 
    Get the position with the reference string where the error was detected (-1 if not relevant).
 public String getRef() 
    Get the string that was being parsed when the error was detected (null if not relevant).
 public String toString()