package org.theonefx.wcframework.jdbc.exception; import java.sql.SQLException; /** * @Package org.theonefx.wcframework.jdbc.exception * @ClassName: BadSqlGrammarException * @author 陈曦 * @date 2010-10-08 20:13:59 * @Description: 错误的sql语法异常 */ public class BadSqlGrammarException extends InvalidDataAccessResourceUsageException { private static final long serialVersionUID = -9066520546621617270L; private String sql; public BadSqlGrammarException(String task, String sql, SQLException ex) { super(task + "; bad SQL grammar [" + sql + "]", ex); this.sql = sql; } public SQLException getSQLException() { return (SQLException) getCause(); } public String getSql() { return this.sql; } }