Chain named operation.
116 {
118 throw std::runtime_error("Cannot continue chain after failed operation");
119 }
120
121 try {
122 auto result =
m_executor->template execute<OpClass, DataType, OutputType>(name,
m_data);
123 if (!result) {
126 throw std::runtime_error("Named operation failed in fluent chain: " + name);
127 }
128
129 auto next = FluentExecutor<Executor, OutputType>(
m_executor, std::move(result->data));
131 next.m_operation_history.push_back(name);
132 return next;
133 } catch (const std::exception& e) {
136 throw;
137 }
138 }
std::shared_ptr< Executor > m_executor
std::vector< std::string > m_operation_history
void record_error(const std::string &error)