feat: add connect error handle to Reconclient
This commit is contained in:
@@ -6,6 +6,8 @@ class RequestResult
|
||||
public:
|
||||
static RequestResult Success(const std::string& aMessage= std::string());
|
||||
static RequestResult Fail(const std::string& aMessage);
|
||||
static RequestResult ConnectFail(const std::string& aMessage);
|
||||
|
||||
|
||||
RequestResult()=default;
|
||||
RequestResult(RequestResult &&) = default;
|
||||
@@ -16,6 +18,7 @@ public:
|
||||
|
||||
bool good();
|
||||
bool bad();
|
||||
bool isConnectFailure();
|
||||
std::string message();
|
||||
std::string error();
|
||||
|
||||
@@ -24,6 +27,7 @@ private:
|
||||
std::string mMessage;
|
||||
std::string mError;
|
||||
bool mSuccess;
|
||||
bool mConnectError;
|
||||
void becomeGood(const std::string& aMessage );
|
||||
void becomeBad(const std::string& aMessage);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user