public InvalidPathException (String input, String reason)

Constructs an instance from the given input string and reason. The resulting object will have an error index of -1.

Parameters:
input    the input string
reason    a string explaining why the input was rejected

Exceptions:
NullPointerException     if either the input or reason strings are null