Chain a named operation fetched from the executor's pool.
203 {
205 error<std::runtime_error>(
207 std::source_location::current(),
208 "Cannot continue chain after failed operation: {}",
name);
209 }
210
211 try {
213 if (!result) {
216 error<std::runtime_error>(
218 std::source_location::current(),
219 "Named operation failed in fluent chain: {}",
name);
220 }
221
222 auto next = FluentExecutor<Executor, OutputType>(
m_executor, std::move(*result));
224 next.m_operation_history.push_back(
name);
225 return next;
226 } catch (const std::exception& e) {
231 std::source_location::current(),
232 "Exception in named operation '{}': {}",
name, e.what());
233 }
234 }
void record_error(const std::string &err)
std::shared_ptr< Executor > m_executor
std::vector< std::string > m_operation_history
@ ComputeMatrix
Compute operations (Yantra - algorithms, matrices, DSP)
void error_rethrow(Component component, Context context, std::source_location location=std::source_location::current(), std::string_view additional_context="")
Catch and log an exception, then rethrow it.
@ Yantra
DSP algorithms, computational units, matrix operations, Grammar.