CPPKiteConnect
|
CPPKiteConnect saves you the hassle of detecting API errors by manually checking HTTP codes or JSON error responses. It raises appropriately named exceptions. kiteppException
is derived from std::exception
, provides code()
, message()
methods and inherits the what()
method. All kitepp exceptions barring one are derived from this class. Most of the times, this is the exception class you'll want to catch.
More...
#include <exceptions.hpp>
Public Member Functions | |
kiteppException (int Code_, string Message_) | |
const char * | what () const noexcept override=0 |
Provides short descripion of the error. More... | |
int | code () const noexcept |
Get HTTP code sent by the REST API. More... | |
const char * | message () const noexcept |
Get error message sent by the REST API. More... | |
CPPKiteConnect saves you the hassle of detecting API errors by manually checking HTTP codes or JSON error responses. It raises appropriately named exceptions. kiteppException
is derived from std::exception
, provides code()
, message()
methods and inherits the what()
method. All kitepp exceptions barring one are derived from this class. Most of the times, this is the exception class you'll want to catch.
libExcpetion
isn't derived from kiteppException
.
|
inlinenoexcept |
Get HTTP code sent by the REST API.
|
inlinenoexcept |
Get error message sent by the REST API.
|
overridepure virtualnoexcept |
Provides short descripion of the error.
Implemented in kiteconnect::unknownException, kiteconnect::permissionException, kiteconnect::generalException, kiteconnect::dataException, kiteconnect::networkException, kiteconnect::inputException, kiteconnect::orderException, kiteconnect::userException, and kiteconnect::tokenException.