|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.mail.MessagingException
javax.mail.internet.ParseException
javax.mail.internet.AddressException
public class AddressException
An exception thrown when an incorrectly formatted address is encountered.
| Field Summary | |
|---|---|
protected int |
pos
The index in ref where the error occurred, or -1 if not known. |
protected String |
ref
The address(es) being parsed. |
| Constructor Summary | |
|---|---|
AddressException()
Constructor with no detail message. |
|
AddressException(String s)
Constructor with the specified detail message. |
|
AddressException(String s,
String ref)
Constructor with the specified detail message and address being parsed. |
|
AddressException(String s,
String ref,
int pos)
Constructor with the specified detail message and address being parsed. |
|
| Method Summary | |
|---|---|
int |
getPos()
Returns the position within ref where the error was detected,
or -1 if ref is null. |
String |
getRef()
Returns the address(es) being parsed when the error was detected. |
String |
toString()
|
| Methods inherited from class javax.mail.MessagingException |
|---|
getMessage, getNextException, printStackTrace, printStackTrace, setNextException |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String ref
protected int pos
ref where the error occurred, or -1 if not known.
| Constructor Detail |
|---|
public AddressException()
public AddressException(String s)
s - the detail message
public AddressException(String s,
String ref)
s - the detail messageref - the address being parsed
public AddressException(String s,
String ref,
int pos)
s - the detail messageref - the address being parsedpos - the index in ref where the error occurred| Method Detail |
|---|
public String getRef()
public int getPos()
ref where the error was detected,
or -1 if ref is null.
public String toString()
toString in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||