class HerdErrorInformationExceptionHandler {

    @ExceptionHandler(value = AccessDeniedException.class)
    @ResponseStatus(HttpStatus.FORBIDDEN)
    @ResponseBody
    public ErrorInformation handleAccessDeniedException(Exception exception)
    {
        return getErrorInformation(HttpStatus.FORBIDDEN, exception);
    }

}