org.hibernate.dialect.resolver
Class BasicSQLExceptionConverter

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

public class BasicSQLExceptionConverter
extends Object

A helper to centralize conversion of SQLExceptions to JDBCExceptions.


Field Summary
static BasicSQLExceptionConverter INSTANCE
           
static String MSG
           
 
Constructor Summary
BasicSQLExceptionConverter()
           
 
Method Summary
 JDBCException convert(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 String MSG
Constructor Detail

BasicSQLExceptionConverter

public BasicSQLExceptionConverter()
Method Detail

convert

public JDBCException convert(SQLException sqlException)
Perform a conversion.

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


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.