8#ifndef OCF_DAQ_ERROR_HPP_
9#define OCF_DAQ_ERROR_HPP_
16#include <fmt/ostream.h>
50 using std::runtime_error::runtime_error;
60 using std::runtime_error::runtime_error;
70 DaqSourceError(std::string request, std::string source, std::string message);
72 char const*
what()
const noexcept override;
88 DaqSourceErrors(std::vector<std::variant<DaqSourceError, std::exception_ptr>> errors);
90 char const*
what()
const noexcept override;
93 Errors()
const noexcept -> std::vector<std::variant<DaqSourceError, std::exception_ptr>>
const&;
98 std::vector<std::variant<DaqSourceError, std::exception_ptr>> m_errors;
105struct fmt::formatter<
daq::ErrorPolicy> : ostream_formatter {};
Started operation was aborted.
Started operation timed out.
Represents error in single source.
char const * what() const noexcept override
Exception thrown to carry reply errors.
auto Errors() const noexcept -> std::vector< std::variant< DaqSourceError, std::exception_ptr > > const &
char const * what() const noexcept override
std::ostream & operator<<(std::ostream &os, AsyncProcessIf const &proc)
Formats proc representation in the form [<pid>] <args>
ErrorPolicy
Error policy supported by certain operations.
@ Strict
Any error is considered fatal and may lead to the operation being aborted.
@ Tolerant
Errors that can be ignored with partial completion of a command will be tolerated and is reported as ...