public InvalidPathException (String input, String reason, int 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 was rejected
index    the index at which the error occurred, or -1 if the index is not known

Exceptions:
NullPointerException     if either the input or reason strings are null
IllegalArgumentException     if the error index is less than -1