lib/cargo/error.hpp
0 → 100644
+120
−0
+12
−3
+108
−10
lib/error.cpp
0 → 100644
+320
−0
+46
−1
Loading
This MR enables Cargo to keep track of transfer status so that it can be reported back to users.
It also extends the Cargo API as follows:
transfer_dataset() as a convenience function to
request the transfer of a single dataset.cargo::transfer_state enum with appropriate values that
reflect a transfer's current status.cargo::transfer_status class with functions state(), done(),
failed() and error() to retrieve a transfer's current status and
its associated error condition in case of failure.cargo::transfer class with functions wait(),
and wait_for(), to wait for the completion of a transfer request.cargo::error_code from enum to a class to allow for more
expressiveness of error conditions.no_such_transfer and transfer_in_progress.cargo::transfer_state and std::optional<T>.Closes #10 (closed)