atPosition

public static ParseException atPosition(String errorMessage, String logMessage, int position)

Creates a new parse exception for situations in which the position of the error is known.

Return

the parser exception.

Parameters

errorMessage

the user error message.

logMessage

the original log message.

position

the index of the invalid character in the log message.