| Modifier and Type | Field and Description |
|---|---|
| protected int | pos
The index in the string where the error occurred, or -1 if not known. |
| protected String | ref
The string being parsed. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AddressException(String
the detail message s)Constructs an AddressException with the specified detail message. |
| public | AddressException(String
the detail message s, String the string being parsed ref)Constructs an AddressException with the specified detail message and reference info. |
| public | AddressException(String
the detail message s, String the string being parsed ref, int the position of the error pos)Constructs an AddressException with the specified detail message and reference info. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the position within the string of the errorGet the position with the reference string where the error was detected (-1 if not relevant). |
| public String | Returns: the string that was being parsedGet the string that was being parsed when the error was detected (null if not relevant). |
| public String | toString()
Overrides jakarta. Override toString method to provide information on nested exceptions. |
| pos | back to summary |
|---|---|
| protected int pos The index in the string where the error occurred, or -1 if not known. | |
| ref | back to summary |
|---|---|
| protected String ref The string being parsed. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides jakarta. | |
| AddressException | back to summary |
|---|---|
| public AddressException() Constructs an AddressException with no detail message. | |
| AddressException | back to summary |
|---|---|
| public AddressException(String s) Constructs an AddressException with the specified detail message.
| |
| AddressException | back to summary |
|---|---|
| public AddressException(String s, String ref) Constructs an AddressException with the specified detail message and reference info. | |
| AddressException | back to summary |
|---|---|
| public AddressException(String s, String ref, int pos) Constructs an AddressException with the specified detail message and reference info. | |
| getPos | back to summary |
|---|---|
| public int getPos() Get the position with the reference string where the error was detected (-1 if not relevant).
| |
| getRef | back to summary |
|---|---|
| public String getRef() Get the string that was being parsed when the error was detected (null if not relevant).
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides jakarta. Doc from jakarta. Override toString method to provide information on nested exceptions.
| |