Example usage for org.springframework.data.mapping PropertyReferenceException getMessage

List of usage examples for org.springframework.data.mapping PropertyReferenceException getMessage

Introduction

In this page you can find the example usage for org.springframework.data.mapping PropertyReferenceException getMessage.

Prototype

@Override
    public String getMessage() 

Source Link

Usage

From source file:edu.pitt.dbmi.ccd.anno.error.ErrorHandler.java

@ExceptionHandler(PropertyReferenceException.class)
@ResponseStatus(HttpStatus.BAD_REQUEST)/*from ww  w .  j a v  a2 s . c  o  m*/
@ResponseBody
public ErrorMessage handlePropertyReferenceException(PropertyReferenceException ex, HttpServletRequest req) {
    LOGGER.info(ex.getMessage());
    return new ErrorMessage(HttpStatus.BAD_REQUEST, ex.getMessage(), req);
}