Example usage for org.springframework.batch.core.launch JobExecutionNotRunningException getMessage

List of usage examples for org.springframework.batch.core.launch JobExecutionNotRunningException getMessage

Introduction

In this page you can find the example usage for org.springframework.batch.core.launch JobExecutionNotRunningException getMessage.

Prototype

public String getMessage() 

Source Link

Document

Returns the detail message string of this throwable.

Usage

From source file:org.springframework.batch.admin.web.RestControllerAdvice.java

@ResponseBody
@ExceptionHandler//  w w w .  ja  va 2  s  . com
@ResponseStatus(HttpStatus.NOT_FOUND)
public VndErrors onJobExecutionNotRunningException(JobExecutionNotRunningException e) {
    String logref = logDebug(e);
    return new VndErrors(logref, e.getMessage());
}