public class SpringExceptionTranslator extends Object implements SQLExceptionTranslator
Usage example
Configuration configuration = new Configuration(templates);
configuration.setExceptionTranslator(new SpringExceptionTranslator());
Constructor and Description |
---|
SpringExceptionTranslator() |
SpringExceptionTranslator(org.springframework.jdbc.support.SQLExceptionTranslator translator) |
Modifier and Type | Method and Description |
---|---|
RuntimeException |
translate(SQLException e) |
RuntimeException |
translate(String sql,
List<Object> bindings,
SQLException e) |
public SpringExceptionTranslator()
public SpringExceptionTranslator(org.springframework.jdbc.support.SQLExceptionTranslator translator)
public RuntimeException translate(String sql, List<Object> bindings, SQLException e)
translate
in interface SQLExceptionTranslator
public RuntimeException translate(SQLException e)
translate
in interface SQLExceptionTranslator
Copyright © 2007–2015 Mysema Ltd. All rights reserved.