LongPort OpenAPI C++ SDK
Public Member Functions | List of all members
longport::Status Class Reference

#include <status.hpp>

Public Member Functions

 Status ()
 
 Status (const lb_error_t *err)
 
 Status (lb_error_t *err)
 
 Status (Status &&status) noexcept
 
 ~Status ()
 
 operator bool ()
 
bool is_ok () const
 Returns true if no errors occurs. More...
 
bool is_err () const
 Returns true if an errors occurs. More...
 
int64_t code () const
 Returns the error code. More...
 
const char * message () const
 Returns the error message. More...
 

Constructor & Destructor Documentation

◆ Status() [1/4]

longport::Status::Status ( )

◆ Status() [2/4]

longport::Status::Status ( const lb_error_t err)

◆ Status() [3/4]

longport::Status::Status ( lb_error_t err)

◆ Status() [4/4]

longport::Status::Status ( Status &&  status)
noexcept

◆ ~Status()

longport::Status::~Status ( )

Member Function Documentation

◆ code()

int64_t longport::Status::code ( ) const

Returns the error code.

◆ is_err()

bool longport::Status::is_err ( ) const

Returns true if an errors occurs.

◆ is_ok()

bool longport::Status::is_ok ( ) const

Returns true if no errors occurs.

◆ message()

const char* longport::Status::message ( ) const

Returns the error message.

◆ operator bool()

longport::Status::operator bool ( )
inline

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