The combined string is only needed if `error_history` is a non-empty list. So,
```
if error_history:
    raise AllHandlersFailedException('; '.join(error_history))
else:
    raise NotHandlerForType
```