java.net
public class URISyntaxException extends Exception
Since: 1.4
See Also: URI
UNKNOWN: updated to 1.4
Constructor Summary | |
---|---|
URISyntaxException(String input, String msg)
Create an exception from the invalid string, with the index set to -1.
| |
URISyntaxException(String input, String msg, int index)
Create an exception from the invalid string, with the index of the
point of failure.
|
Method Summary | |
---|---|
int | getIndex()
Returns the index of the failure, or -1.
|
String | getInput()
Returns the bad input string.
|
String | getMessage()
Returns a message describing the parse error, as if by
getReason() + (getIndex() >= 0 ? |
String | getReason()
Returns the reason for the failure.
|
Parameters: input the bad URI msg the descriptive error message
Throws: NullPointerException if input or msg are null
Parameters: input the bad URI msg the descriptive error message index the index of the parse error, or -1
Throws: NullPointerException if input or msg are null IllegalArgumentException if index < -1
Returns: the index of failure
Returns: the bad URI, guaranteed non-null
getReason() + (getIndex() >= 0 ? " at index " + getIndex() : "")
+ ": " + getInput()
.
Returns: the message string
Returns: the message, guaranteed non-null