This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.mail.internet
exception AddressException

javax.mail.MessagingException extended by javax.mail.internet.ParseException extended by javax.mail.internet.AddressException

public exception AddressException
extends ParseException

The exception thrown when a wrongly formatted address is encountered.


Field Summary
protected int pos
          The index in the string where the error occurred, or -1 if not known.
protected String ref
          The string being parsed.
 
Constructor Summary

          Constructs an AddressException with no detail message.

          Constructs an AddressException with the specified detail message.

          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.
 
Method Summary
 int

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

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

          Override toString method to provide information on nested exceptions.
 
Methods inherited from class javax.mail.MessagingException
getCause, getNextException, setNextException, toString
 

Field Detail

pos

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

ref

protected String ref
The string being parsed.
Constructor Detail

AddressException

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


AddressException

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

Parameters:
s - the detail message

AddressException

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

Parameters:
s - the detail message
ref

AddressException

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

Parameters:
s - the detail message
ref
pos
Method Detail

getPos

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


getRef

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


toString

public String toString()
Overrides:
toString in class MessagingException


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention. The official Sun™ documentation can be found here at http://java.sun.com/products/javamail/javadocs/index.html.