withBounds

public static ParseException withBounds(String errorMessage, String logMessage, int start, int end)

Creates a new parse exception for situations in which both the start and end positions of the error are known.

Return

the parser exception.

Parameters

errorMessage

the user error message.

logMessage

the original log message.

start

the index of the first character in the invalid section of the log message.

end

the index after the last character in the invalid section of the log message.