class HerdErrorInformationExceptionHandler {

    @ExceptionHandler(value = {AlreadyExistsException.class, ObjectAlreadyExistsException.class, OptimisticLockException.class})
    @ResponseStatus(HttpStatus.CONFLICT)
    @ResponseBody
    public ErrorInformation handleConflictException(Exception exception)
    {
        return getErrorInformation(HttpStatus.CONFLICT, exception);
    }

}