public URISyntaxException(String input,
String reason,
int index) {
super(reason);
if ((input == null) || (reason == null))
throw new NullPointerException();
if (index < -1)
throw new IllegalArgumentException();
this.input = input;
this.index = index;
}
Constructs an instance from the given input string, reason, and error
index. Parameters:
input - The input string
reason - A string explaining why the input could not be parsed
index - The index at which the parse error occurred,
or -1 if the index is not known
Throws:
NullPointerException -
If either the input or reason strings are null
IllegalArgumentException -
If the error index is less than -1
|