Lumiera  0.pre.03
»edit your freedom«
ExecResult Class Reference

#include "steam/control/handling-pattern.hpp"

Description

Result (Status) of command execution.

It is returned when invoking a HandlingPattern and can be used to check for success and/or re-throw any Exception encountered during the command execution.

Todo:
couldn't that be replaced by a lib::Result<void> instance??

Definition at line 71 of file handling-pattern.hpp.

Public Member Functions

bool isValid () const
 
void maybeThrow () const
 
 operator bool () const
 

Friends

class HandlingPattern
 

Protected Member Functions

 ExecResult ()
 default: command executed successfully
 
 ExecResult (lumiera::Error const &)
 this result marks a failed execution More...
 

Private Attributes

const string log_
 

Constructor & Destructor Documentation

◆ ExecResult()

ExecResult ( lumiera::Error const &  problem)
protected

this result marks a failed execution

Note
just grab and retain the error message, but clear the error flag. Rationale: by packaging into the ExecResult, the excepton counts as treated.

Definition at line 109 of file handling-pattern.cpp.

References lumiera_error().

+ Here is the call graph for this function:
+ Collaboration diagram for ExecResult:

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