Result wrapper that holds either a RunResult or an error message.
More...
#include <runner.hpp>
|
|
bool | HasError () const |
| | Check if an error occurred.
|
Result wrapper that holds either a RunResult or an error message.
◆ Failure()
| RunResultOrError foresthub::agent::RunResultOrError::Failure |
( |
std::string | error_message | ) |
|
|
inlinestatic |
Create a failure result.
- Parameters
-
| error_message | Description of what went wrong. |
- Returns
- RunResultOrError with the error message.
◆ Success()
Create a successful result.
- Parameters
-
| result | Completed run result to wrap. |
- Returns
- RunResultOrError wrapping the given result.
The documentation for this struct was generated from the following file: