SSDB C++ API
The C++ Client API for SSDB server
Public Member Functions | List of all members
ssdb::Status Class Reference

Client requests' return status. More...

#include <SSDB.h>

Public Member Functions

bool ok ()
 Returns true if the request succeeded.
 
bool not_found ()
 Returns true if the requested key is not found. More...
 
bool error ()
 Returns true if error occurs during the request. More...
 
std::string code ()
 The response code.
 
 Status (const std::string &code)
 
 Status (const std::vector< std::string > *resp)
 

Detailed Description

Client requests' return status.

Member Function Documentation

bool ssdb::Status::error ( )
inline

Returns true if error occurs during the request.

It might be a server error, or a client error.

bool ssdb::Status::not_found ( )
inline

Returns true if the requested key is not found.

When this method returns true, ok() will always returns false.


The documentation for this class was generated from the following file: