|
co_usb
|
Exception error protocol. More...
#include <error_protocol.hpp>
Public Types | |
| template<typename ValTy > | |
| using | return_type = ValTy |
Public Member Functions | |
| constexpr | as_exception_t () |
| template<typename U > | |
| auto | with_error (std::error_code ec) -> return_type< U > |
| template<typename U , typename... Args> | |
| auto | with_success (Args &&...args) -> return_type< U > |
Exception error protocol.
Base error protocol that signals errors as std::system_error exceptions. Its result value is the success value type.
with_error throws std::system_error. | using co_usb::detail::as_exception_t::return_type = ValTy |
|
inlineexplicitconstexpr |
|
inline |
|
inline |