@Override public String toString() { return StringUtils.addAsterisk(sqlCommand, parseIndex); } }
/** * Create a syntax error exception. * * @param sql the SQL statement * @param index the position of the error in the SQL statement * @return the exception */ public static DbException getSyntaxError(String sql, int index) { sql = StringUtils.addAsterisk(sql, index); return get(ErrorCode.SYNTAX_ERROR_1, sql); }
private static DbException getFormatException(String s, int i) { return DbException.get(ErrorCode.STRING_FORMAT_ERROR_1, addAsterisk(s, i)); }
/** * Create a syntax error exception. * * @param sql the SQL statement * @param index the position of the error in the SQL statement * @param message the message * @return the exception */ public static DbException getSyntaxError(String sql, int index, String message) { sql = StringUtils.addAsterisk(sql, index); return new DbException(getJdbcSQLException(ErrorCode.SYNTAX_ERROR_2, null, sql, message)); }
/** * Create a syntax error exception. * * @param sql the SQL statement * @param index the position of the error in the SQL statement * @return the exception */ public static DbException getSyntaxError(String sql, int index) { sql = StringUtils.addAsterisk(sql, index); return get(ErrorCode.SYNTAX_ERROR_1, sql); }
/** * Create a syntax error exception. * * @param sql the SQL statement * @param index the position of the error in the SQL statement * @return the exception */ public static DbException getSyntaxError(String sql, int index) { sql = StringUtils.addAsterisk(sql, index); return get(ErrorCode.SYNTAX_ERROR_1, sql); }
public static SQLException getSyntaxError(String sql, int index) { sql = StringUtils.addAsterisk(sql, index); return getSQLException(ErrorCode.SYNTAX_ERROR_1, sql); }
public static SQLException getSyntaxError(String sql, int index, String expected) { sql = StringUtils.addAsterisk(sql, index); return getSQLException(ErrorCode.SYNTAX_ERROR_2, new String[]{sql, expected}); }
private static DbException getFormatException(String s, int i) { return DbException.get(ErrorCode.STRING_FORMAT_ERROR_1, addAsterisk(s, i)); }
private static DbException getFormatException(String s, int i) { return DbException.get(ErrorCode.STRING_FORMAT_ERROR_1, addAsterisk(s, i)); }
private static SQLException getFormatException(String s, int i) { return Message.getSQLException(ErrorCode.STRING_FORMAT_ERROR_1, addAsterisk(s, i)); }
/** * Create a syntax error exception. * * @param sql the SQL statement * @param index the position of the error in the SQL statement * @param message the message * @return the exception */ public static DbException getSyntaxError(String sql, int index, String message) { sql = StringUtils.addAsterisk(sql, index); return new DbException(getJdbcSQLException(ErrorCode.SYNTAX_ERROR_2, null, sql, message)); }
/** * Create a syntax error exception. * * @param sql the SQL statement * @param index the position of the error in the SQL statement * @param message the message * @return the exception */ public static DbException getSyntaxError(String sql, int index, String message) { sql = StringUtils.addAsterisk(sql, index); return new DbException(getJdbcSQLException(ErrorCode.SYNTAX_ERROR_2, null, sql, message)); }
if (escape == c) { if (i >= len - 1) { throw Message.getSQLException(ErrorCode.LIKE_ESCAPE_ERROR_1, StringUtils.addAsterisk(p, i)); throw Message.getSQLException(ErrorCode.LIKE_ESCAPE_ERROR_1, StringUtils.addAsterisk(p, i));