in rDSTO
The swh.storage module is split in three layers :
- swh.storage.storage, the "local storage" / "storage backend;
- swh.storage.api, the "Storage API server";
- swh.storage.remote_storage, the "Storage API client".
Currently, errors/exceptions raised in swh.storage.storage aren't passed through to the upper layers, and you only get an error 500 from the API server. This will become evident once exceptions get tested in swh.storage.storage as the tests for remote_storage are identical.
We need to define and implement a convention to be able to pass through the errors from the bottom layer through to the Storage API client.