public final class DefaultSQLExceptionTranslator extends Object implements SQLExceptionTranslator
SQLExceptionTranslator
interfaceModifier and Type | Field and Description |
---|---|
static SQLExceptionTranslator |
DEFAULT |
Modifier and Type | Method and Description |
---|---|
RuntimeException |
translate(SQLException e)
Translate the given SQLException
|
RuntimeException |
translate(String sql,
List<Object> bindings,
SQLException e)
Translate the given SQLException
|
public static final SQLExceptionTranslator DEFAULT
public RuntimeException translate(SQLException e)
SQLExceptionTranslator
translate
in interface SQLExceptionTranslator
e
- SQLException to translatepublic RuntimeException translate(String sql, List<Object> bindings, SQLException e)
SQLExceptionTranslator
translate
in interface SQLExceptionTranslator
sql
- SQL stringbindings
- bindinge
- SQLException to translateCopyright © 2007–2016 Querydsl. All rights reserved.