コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        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));
        }