Example usage for org.springframework.dao DataIntegrityViolationException getCause

List of usage examples for org.springframework.dao DataIntegrityViolationException getCause

Introduction

In this page you can find the example usage for org.springframework.dao DataIntegrityViolationException getCause.

Prototype

public synchronized Throwable getCause() 

Source Link

Document

Returns the cause of this throwable or null if the cause is nonexistent or unknown.

Usage

From source file:org.sipfoundry.sipxconfig.test.IntegrationTestCase.java

void dumpSqlExceptionMessages(DataIntegrityViolationException e) {
    if (e.getCause() instanceof SQLException) {
        dumpSqlExceptionMessages((SQLException) e.getCause());
    }//from ww  w .j  av a2 s.co  m
}