internal static ParseException forInvalidEnd(ParseStringRunner parseStrignRunner) { StringPointer sp = parseStrignRunner.getStringPointer(); string fullMessage = "Unexpected end of input - " + sp.getLineAndColumnForException() + ", near: " + sp.getSubStringForException(16) + getExceptionMessageTail(parseStrignRunner); return(new ParseException(fullMessage)); }
internal static ParseException forCharactersAfterEnd(ParseStringRunner parseStrignRunner) { StringPointer sp = parseStrignRunner.getStringPointer(); string fullMessage = "Unexpected non-white character after end of object - " + sp.getLineAndColumnForException() + ", near: " + sp.getSubStringForException(32) + getExceptionMessageTail(parseStrignRunner); return(new ParseException(fullMessage)); }
internal static ParseException forInvalidCharacter(String message, ParseStringRunner parseStrignRunner) { StringPointer sp = parseStrignRunner.getStringPointer(); string fullMessage = message + " - " + sp.getLineAndColumnForException() + ", near: " + sp.getSubStringForException(32) + getExceptionMessageTail(parseStrignRunner); return(new ParseException(fullMessage)); }