YOrch 1.0.0
Loading...
Searching...
No Matches
catch_as_failure.hpp File Reference
Include dependency graph for catch_as_failure.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  yorch::catch_failure_task< Task >
 Exception-catching adapter for tasks that rely on the default failure mapping. More...
 
struct  yorch::catch_failure_with_policy_task< Task, Policy >
 Exception-catching adapter for tasks with a user-supplied fallback policy. More...
 

Namespaces

namespace  yorch
 

Functions

template<typename Task >
constexpr auto yorch::catch_as_failure (Task &&task)
 Wraps a task so thrown exceptions become default failure results.
 
template<typename Task , typename Policy >
constexpr auto yorch::catch_as_failure (Task &&task, Policy &&policy)
 Wraps a task so thrown exceptions are routed to a user fallback policy.