class HerdErrorInformationExceptionHandler {

    @ExceptionHandler(value = {org.hibernate.ObjectNotFoundException.class, ObjectNotFoundException.class})
    @ResponseStatus(HttpStatus.NOT_FOUND)
    @ResponseBody
    public ErrorInformation handleNotFoundException(RuntimeException exception)
    {
        return getErrorInformation(HttpStatus.NOT_FOUND, exception);
    }

}