public class AddressException extends ParseException
| Modifier and Type | Field and Description |
|---|---|
protected int |
pos
The index in
ref where the error occurred, or -1 if not known. |
protected java.lang.String |
ref
The address(es) being parsed.
|
| Constructor and Description |
|---|
AddressException ()
Constructor with no detail message.
|
AddressException (java.lang.String s)
Constructor with the specified detail message.
|
AddressException (java.lang.String s,
java.lang.String ref)
Constructor with the specified detail message and address being parsed.
|
AddressException (java.lang.String s,
java.lang.String ref,
int pos)
Constructor with the specified detail message and address being parsed.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPos ()
Returns the position within
ref where the error was detected,
or -1 if ref is null. |
java.lang.String |
getRef ()
Returns the address(es) being parsed when the error was detected.
|
java.lang.String |
toString () |
getCause, getNextException, setNextException addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected java.lang.String ref
protected int pos
ref where the error occurred, or -1 if not known.public AddressException()
public AddressException(java.lang.String s)
s - the detail messagepublic AddressException(java.lang.String s, java.lang.String ref)
s - the detail messageref - the address being parsedpublic AddressException(java.lang.String s, java.lang.String ref, int pos)
s - the detail messageref - the address being parsedpos - the index in ref where the error occurredpublic java.lang.String getRef()
public int getPos()
ref where the error was detected,
or -1 if ref is null.public java.lang.String toString()
toString in class MessagingException