public class AddressException extends ParseException
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
pos
The index in the string where the error occurred, or -1 if not known.
|
protected String |
ref
The string being parsed.
|
| 构造器和说明 |
|---|
AddressException()
Constructs an AddressException with no detail message.
|
AddressException(String s)
Constructs an AddressException with the specified detail message.
|
AddressException(String s,
String ref)
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getPos()
Get the position with the reference string where the error was
detected (-1 if not relevant).
|
String |
getRef()
Get the string that was being parsed when the error was detected
(null if not relevant).
|
String |
toString()
Override toString method to provide information on
nested exceptions.
|
getCause, getNextException, setNextExceptionprotected String ref
protected int pos
public AddressException()
public AddressException(String s)
s - the detail messagepublic AddressException(String s, String ref)
s - the detail messageref - the string being parsedpublic String getRef()
public int getPos()
public String toString()
MessagingExceptiontoString 在类中 MessagingExceptionCopyright © 2021 Oracle. All rights reserved.