tgbot-cpp
|
Exception type which is only thrown when Telegram refuses API request. More...
#include <TgException.h>
Public Types | |
enum class | ErrorCode : size_t { Undefined = 0 , BadRequest = 400 , Unauthorized = 401 , Forbidden = 403 , NotFound = 404 , Flood = 402 , Internal = 500 , HtmlResponse = 100 , InvalidJson = 101 } |
Enum of possible errors from Api requests. More... | |
Public Member Functions | |
TgException (const std::string &description, ErrorCode errorCode) | |
Public Attributes | |
const ErrorCode | errorCode |
Exception type which is only thrown when Telegram refuses API request.
Definition at line 16 of file TgException.h.
|
strong |
Enum of possible errors from Api requests.
Enumerator | |
---|---|
Undefined | |
BadRequest | |
Unauthorized | |
Forbidden | |
NotFound | |
Flood | |
Internal | |
HtmlResponse | |
InvalidJson |
Definition at line 23 of file TgException.h.
|
explicit |
const ErrorCode TgBot::TgException::errorCode |
Definition at line 33 of file TgException.h.