Top Description Constructors Methods
org.hibernate.exception

public Class SQLGrammarException

extends JDBCException
Class Inheritance
Imports
java.sql.SQLException, org.hibernate.JDBCException

Implementation of JDBCException indicating that the SQL sent to the database server was invalid (syntax error, invalid object references, etc).
Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public
SQLGrammarException(String message, SQLException
The underlying exception.
root
)

Constructor for JDBCException.

public
SQLGrammarException(String
Optional message.
message
,
SQLException
The underlying exception.
root
,
String sql)

Constructor for JDBCException.

Method Summary

Inherited from org.hibernate.JDBCException:
getErrorCodegetSQLgetSQLExceptiongetSQLState

Constructor Detail

SQLGrammarExceptionback to summary
public SQLGrammarException(String message, SQLException root)

Constructor for JDBCException.

Parameters
root:SQLException

The underlying exception.

SQLGrammarExceptionback to summary
public SQLGrammarException(String message, SQLException root, String sql)

Constructor for JDBCException.

Parameters
message:String

Optional message.

root:SQLException

The underlying exception.