class HerdErrorInformationExceptionHandler {

    @ExceptionHandler(value = Exception.class)
    @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
    @ResponseBody
    public ErrorInformation handleInternalServerErrorException(Exception exception)
    {
        logError("A general error occurred.", exception);
        return getErrorInformation(HttpStatus.INTERNAL_SERVER_ERROR, exception);
    }

}