12 #include <fmt/format.h>
20 case ErrorPolicy::Strict:
33 : m_request(std::move(request)), m_source(std::move(source)), m_message(std::move(message)) {
43 std::copy(errors.begin(), errors.end(), std::back_inserter(
m_errors));
48 std::vector<std::variant<DaqSourceError, std::exception_ptr>> errors)
49 : m_errors(std::move(errors)) {
53 void DaqSourceErrors::Update() {
55 if (
auto const* ptr = std::get_if<DaqSourceError>(&e); ptr) {
56 m_what += ptr->what();
58 }
else if (
auto const* ptr = std::get_if<std::exception_ptr>(&e); ptr) {
65 return m_what.c_str();