Error handling

We have no conventions for the error handling yet. This section is therefore maked as:

TODO