21#ifndef COMMON_RPC_RPCCONTROLLER_H_
22#define COMMON_RPC_RPCCONTROLLER_H_
60 bool Failed()
const {
return m_failed; }
66 std::string
ErrorText()
const {
return m_error_text; }
72 void SetFailed(
const std::string &reason);
85 std::string m_error_text;
A RpcController object is passed every time an RPC is invoked and is used to indicate the success or ...
Definition RpcController.h:42
bool Failed() const
Check if the RPC call this controller was associated with failed.
Definition RpcController.h:60
void Reset()
Reset the state of this controller. Does not affect the session.
Definition RpcController.cpp:35
void SetFailed(const std::string &reason)
Mark this RPC as failed.
Definition RpcController.cpp:40
RpcSession * Session()
Get the session information for this RPC.
Definition RpcController.cpp:45
RpcController(RpcSession *session=NULL)
Create a new RpcController.
Definition RpcController.cpp:29
std::string ErrorText() const
Return the error string if the RPC failed.
Definition RpcController.h:66
Represents the RPC session between a client and server.
Definition RpcSession.h:45
The namespace containing all OLA symbols.
Definition Credentials.cpp:44