The current solution is not clean, but allows us to change error handling later on without missing any point in the programm where we would want to use it.