Constructs an instance from the given input string and reason. The resulting object will have an error index of -1.
input | the input string | |
reason | a string explaining why the input was rejected |
NullPointerException
| if either the input or reason strings are null |
Diagram: Exceptions