javax.mail.internet
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 String |
ref
The address(es) being parsed.
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
getMessage, getNextException, printStackTrace, printStackTrace, setNextException
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace
protected String ref
protected int pos
ref
where the error occurred, or -1 if not known.public AddressException()
public AddressException(String s)
s
- the detail messagepublic AddressException(String s, String ref)
s
- the detail messageref
- the address being parsed© Copyright 2003, 2004 The Free Software Foundation, All rights reserved