userver: utils::ResultStore< void > Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
utils::ResultStore< void > Class Referencefinal

#include <userver/utils/result_store.hpp>

Public Member Functions

void Retrieve ()
 Checks value availability or rethrows the stored exception.
 
void Get () const &
 
void SetValue () noexcept
 Marks the value as available.
 
void SetException (std::exception_ptr &&) noexcept
 Stores an exception.
 

Detailed Description

Simple void value/exception store

Definition at line 49 of file result_store.hpp.

Member Function Documentation

◆ Get()

void utils::ResultStore< void >::Get ( ) const &
inline

Definition at line 100 of file result_store.hpp.

◆ Retrieve()

void utils::ResultStore< void >::Retrieve ( )
inline

Checks value availability or rethrows the stored exception.

Exceptions
std::logic_errorif no value/exception stored

Definition at line 98 of file result_store.hpp.

◆ SetException()

void utils::ResultStore< void >::SetException ( std::exception_ptr &&  exception)
inlinenoexcept

Stores an exception.

Definition at line 108 of file result_store.hpp.

◆ SetValue()

void utils::ResultStore< void >::SetValue ( )
inlinenoexcept

Marks the value as available.

Definition at line 106 of file result_store.hpp.


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