Example usage for org.springframework.jdbc BadSqlGrammarException getStackTrace

List of usage examples for org.springframework.jdbc BadSqlGrammarException getStackTrace

Introduction

In this page you can find the example usage for org.springframework.jdbc BadSqlGrammarException getStackTrace.

Prototype

public StackTraceElement[] getStackTrace() 

Source Link

Document

Provides programmatic access to the stack trace information printed by #printStackTrace() .

Usage

From source file:eu.databata.Propagator.java

protected void revalidateDatabase() {
    if (simulationMode) {
        return;//from   w w  w  . j  a  v a 2  s  .  c o  m
    }
    historyLogger.setCurrentDbChange(null);
    if (revalidationStatement != null) {
        try {
            sqlExecutor.executeSql(revalidationStatement);
        } catch (BadSqlGrammarException e) {
            LOG.warn("Could not revalidate objects. Statement \"" + revalidationStatement
                    + "\" causes Bad Sql Grammar error.");
            if (LOG.isDebugEnabled()) {
                LOG.debug(e.getStackTrace());
            }
        }
    }
}