javax.mail.internet
Class AddressException
public class AddressException
An exception thrown when an incorrectly formatted address is encountered.
Version:
- Chris Burdess
protected int | pos - The index in
ref where the error occurred, or -1 if not known.
|
protected String | ref - The address(es) being parsed.
|
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.
|
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()
|
pos
protected int pos
The index in ref
where the error occurred, or -1 if not known.
ref
protected String ref
The address(es) being parsed.
AddressException
public AddressException()
Constructor with no detail message.
AddressException
public AddressException(String s)
Constructor with the specified detail message.
s
- the detail message
AddressException
public AddressException(String s,
String ref)
Constructor with the specified detail message and address being parsed.
s
- the detail messageref
- the address being parsed
AddressException
public AddressException(String s,
String ref,
int pos)
Constructor with the specified detail message and address being parsed.
s
- the detail messageref
- the address being parsedpos
- the index in ref
where the error occurred
getPos
public int getPos()
Returns the position within ref
where the error was detected,
or -1 if ref
is null.
getRef
public String getRef()
Returns the address(es) being parsed when the error was detected.
toString
public String toString()
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved