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

Quick Search    Search Deep

org.hibernate
Class JDBCException  view JDBCException download JDBCException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.hibernate.exception.NestableRuntimeException
                  extended byorg.hibernate.HibernateException
                      extended byorg.hibernate.JDBCException
All Implemented Interfaces:
org.hibernate.exception.Nestable, java.io.Serializable

public class JDBCException
extends HibernateException

Wraps an SQLException. Indicates that an exception occurred during a JDBC call.


Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private  java.lang.String sql
           
private  java.sql.SQLException sqle
           
 
Fields inherited from class org.hibernate.exception.NestableRuntimeException
delegate
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
JDBCException(java.lang.String string, java.sql.SQLException root)
           
JDBCException(java.lang.String string, java.sql.SQLException root, java.lang.String sql)
           
 
Method Summary
 int getErrorCode()
          Get the errorCode of the underlying SQLException.
 java.lang.String getSQL()
          Get the actual SQL statement that caused the exception (may be null)
 java.sql.SQLException getSQLException()
          Get the underlying SQLException.
 java.lang.String getSQLState()
          Get the SQLState of the underlying SQLException.
 
Methods inherited from class org.hibernate.exception.NestableRuntimeException
getCause, getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sqle

private java.sql.SQLException sqle

sql

private java.lang.String sql
Constructor Detail

JDBCException

public JDBCException(java.lang.String string,
                     java.sql.SQLException root)

JDBCException

public JDBCException(java.lang.String string,
                     java.sql.SQLException root,
                     java.lang.String sql)
Method Detail

getSQLState

public java.lang.String getSQLState()
Get the SQLState of the underlying SQLException.


getErrorCode

public int getErrorCode()
Get the errorCode of the underlying SQLException.


getSQLException

public java.sql.SQLException getSQLException()
Get the underlying SQLException.


getSQL

public java.lang.String getSQL()
Get the actual SQL statement that caused the exception (may be null)