Merge lp:~jamesh/storage-framework/convert-exception-ptr into lp:storage-framework/devel
Proposed by
James Henstridge
Status: | Merged |
---|---|
Approved by: | Michi Henning |
Approved revision: | 125 |
Merged at revision: | 123 |
Proposed branch: | lp:~jamesh/storage-framework/convert-exception-ptr |
Merge into: | lp:storage-framework/devel |
Diff against target: |
433 lines (+307/-28) 9 files modified
include/unity/storage/provider/Exceptions.h (+9/-2) include/unity/storage/provider/internal/utils.h (+38/-0) src/provider/CMakeLists.txt (+1/-0) src/provider/internal/DownloadJobImpl.cpp (+2/-13) src/provider/internal/UploadJobImpl.cpp (+2/-13) src/provider/internal/utils.cpp (+95/-0) tests/CMakeLists.txt (+1/-0) tests/provider-utils/CMakeLists.txt (+8/-0) tests/provider-utils/utils_test.cpp (+151/-0) |
To merge this branch: | bzr merge lp:~jamesh/storage-framework/convert-exception-ptr |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michi Henning (community) | Approve | ||
unity-api-1-bot | continuous-integration | Approve | |
Review via email:
|
Commit message
Fix the report_error() methods of DownloadJob and UploadJob to correctly preserve the type of StorageException subclasses.
Description of the change
Make the report_error() methods on DownloadJob and UploadJob correctly preserve the exception type for StorageExceptions.
Previously subclasses of StorageException were being squashed down to the base type, losing additional data members on e.g. ResourceException.
I've also made StorageException's destructor protected, as discussed on IRC.
To post a comment you must log in.
PASSED: Continuous integration, rev:124 /jenkins. canonical. com/unity- api-1/job/ lp-storage- framework- ci/271/ /jenkins. canonical. com/unity- api-1/job/ build/1880 /jenkins. canonical. com/unity- api-1/job/ build-0- fetch/1887 /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 1669 /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 1669/artifact/ output/ *zip*/output. zip /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=amd64, release= zesty/1669 /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=amd64, release= zesty/1669/ artifact/ output/ *zip*/output. zip /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 1669 /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 1669/artifact/ output/ *zip*/output. zip /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=armhf, release= zesty/1669 /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=armhf, release= zesty/1669/ artifact/ output/ *zip*/output. zip /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=i386, release= xenial+ overlay/ 1669 /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=i386, release= xenial+ overlay/ 1669/artifact/ output/ *zip*/output. zip /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=i386, release= zesty/1669 /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=i386, release= zesty/1669/ artifact/ output/ *zip*/output. zip
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild: /jenkins. canonical. com/unity- api-1/job/ lp-storage- framework- ci/271/ rebuild
https:/