类 SQLGrammarException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.JDBCException
-
- org.hibernate.exception.SQLGrammarException
-
- 所有已实现的接口:
Serializable
public class SQLGrammarException extends JDBCException
Implementation of JDBCException indicating that the SQL sent to the database server was invalid (syntax error, invalid object references, etc).- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 SQLGrammarException(String message, SQLException root)Constructor for JDBCException.SQLGrammarException(String message, SQLException root, String sql)Constructor for JDBCException.
-
方法概要
-
从类继承的方法 org.hibernate.JDBCException
getErrorCode, getSQL, getSQLException, getSQLState
-
-
-
-
构造器详细资料
-
SQLGrammarException
public SQLGrammarException(String message, SQLException root)
Constructor for JDBCException.- 参数:
root- The underlying exception.
-
SQLGrammarException
public SQLGrammarException(String message, SQLException root, String sql)
Constructor for JDBCException.- 参数:
message- Optional message.root- The underlying exception.
-
-