Example usage for org.springframework.dao InvalidDataAccessResourceUsageException getMessage

List of usage examples for org.springframework.dao InvalidDataAccessResourceUsageException getMessage

Introduction

In this page you can find the example usage for org.springframework.dao InvalidDataAccessResourceUsageException getMessage.

Prototype

@Override
@Nullable
public String getMessage() 

Source Link

Document

Return the detail message, including the message from the nested exception if there is one.

Usage

From source file:com.devnexus.ting.core.service.impl.SystemSetupServiceImpl.java

@Override
public boolean isDatabaseSetup() {
    try {/*from  w  ww  . ja v  a2 s  .co  m*/
        final List<SchemaMigration> migrations = schemaMigrationRepository.findAll();

        if (migrations.isEmpty()) {
            return false;
        } else {
            return true;
        }
    } catch (InvalidDataAccessResourceUsageException e) {
        LOGGER.warn("Looks like the database has not been set up, yet.", e.getMessage());
        return false;
    }
}