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;
78 DISALLOW_COPY_AND_ASSIGN(
Result);
82 #endif // INCLUDE_OLA_CLIENT_RESULT_H_ const std::string & Error() const
Returns the error message if the action failed.
Definition: Result.h:73
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
Result(const std::string &error)
Definition: Result.h:58
Indicates the result of a OLA API call.
Definition: Result.h:52
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44