Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/hibernate/exception/SQLGrammarException.java


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;
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 message, SQLException 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 message, SQLException root, String sql) {
31      super( message, root, sql );
32    }
33  }