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;
90 #endif // COMMON_RPC_RPCCONTROLLER_H_
Represents the RPC session between a client and server.
Definition: RpcSession.h:45
std::string ErrorText() const
Return the error string if the RPC failed.
Definition: RpcController.h:66
void SetFailed(const std::string &reason)
Mark this RPC as failed.
Definition: RpcController.cpp:40
RpcController(RpcSession *session=NULL)
Create a new RpcController.
Definition: RpcController.cpp:29
RpcSession * Session()
Get the session infomation for this RPC.
Definition: RpcController.cpp:45
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
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