Resilient
Public Member Functions | List of all members
resilient::Always Class Reference

A detector which always detects failure. More...

#include <always.hpp>

Inheritance diagram for resilient::Always:
[legend]

Public Member Functions

template<typename T >
returned_failure_t< failure_typesdetect (ICallResult< T > &result)
 Always detect AlwaysError failure and consume possible exceptions. More...
 
- Public Member Functions inherited from resilient::StatelessDetector< Always >
NoState preRun ()
 Does nothing. More...
 
decltype(auto) postRun (NoState, ICallResult< T > &result)
 Detect failures by invoking the Detector. More...
 
decltype(auto) postRun (NoState, ICallResult< T > &result) const
 

Additional Inherited Members

- Public Types inherited from resilient::FailureDetectorTag< AlwaysError >
using failure_types = std::tuple< FailureTypes... >
 Tuple composed of the possible failure types the detector can detect. More...
 

Detailed Description

A detector which always detects failure.

Member Function Documentation

template<typename T >
returned_failure_t<failure_types> resilient::Always::detect ( ICallResult< T > &  result)
inline

Always detect AlwaysError failure and consume possible exceptions.

Template Parameters
TThe type returned by the detected function.
Parameters
resultThe result of invoking the detected function.
Returns
The failure detected: AlwaysError.

The documentation for this class was generated from the following file: