KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > exception > SQLGrammarException


1 // $Id: SQLGrammarException.java,v 1.2 2004/11/21 00:11:27 pgmjsd Exp $
2
package org.hibernate.exception;
3
4 import org.hibernate.JDBCException;
5
6 import java.sql.SQLException JavaDoc;
7
8 /**
9  * Implementation of JDBCException indicating that the SQL sent to the database
10  * server was invalid (syntax error, invalid object references, etc).
11  *
12  * @author Steve Ebersole
13  */

14 public class SQLGrammarException extends JDBCException {
15     /**
16      * Constructor for JDBCException.
17      *
18      * @param root The underlying exception.
19      */

20     public SQLGrammarException(String JavaDoc message, SQLException JavaDoc root) {
21         super( message, root );
22     }
23
24     /**
25      * Constructor for JDBCException.
26      *
27      * @param message Optional message.
28      * @param root The underlying exception.
29      */

30     public SQLGrammarException(String JavaDoc message, SQLException JavaDoc root, String JavaDoc sql) {
31         super( message, root, sql );
32     }
33 }
34
Popular Tags