25#ifndef INCLUDE_OLA_CLIENT_RESULT_H_
26#define INCLUDE_OLA_CLIENT_RESULT_H_
58 explicit Result(
const std::string &error)
67 bool Success()
const {
return m_error.empty(); }
73 const std::string&
Error()
const {
return m_error; }
76 const std::string m_error;
Indicates the result of a OLA API call.
Definition Result.h:52
const std::string & Error() const
Returns the error message if the action failed.
Definition Result.h:73
Result(const std::string &error)
Definition Result.h:58
bool Success() const
Indicates the status of the action. If the action failed Error() can be used to fetch the error messa...
Definition Result.h:67
The namespace containing all OLA symbols.
Definition Credentials.cpp:44