org.hibernate.dialect.resolver
Class BasicSQLExceptionConverter

java.lang.Object
  extended by org.hibernate.dialect.resolver.BasicSQLExceptionConverter

public class BasicSQLExceptionConverter
extends java.lang.Object

A helper to centralize conversion of SQLExceptions to JDBCExceptions.

Author:
Steve Ebersole

Field Summary
static BasicSQLExceptionConverter INSTANCE
           
static java.lang.String MSG
           
 
Constructor Summary
BasicSQLExceptionConverter()
           
 
Method Summary
 JDBCException convert(java.sql.SQLException sqlException)
          Perform a conversion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final BasicSQLExceptionConverter INSTANCE

MSG

public static final java.lang.String MSG
See Also:
Constant Field Values
Constructor Detail

BasicSQLExceptionConverter

public BasicSQLExceptionConverter()
Method Detail

convert

public JDBCException convert(java.sql.SQLException sqlException)
Perform a conversion.

Parameters:
sqlException - The exception to convert.
Returns:
The converted exception.


Copyright © 2013. All Rights Reserved.