|
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 = 429 , Internal = 500 , HtmlResponse = 100 , InvalidJson = 101 } |
| Enum of possible errors from Api requests. More... | |
Public Member Functions | |
| TgException (std::string_view description, ErrorCode errorCode, std::shared_ptr< ResponseParameters > parameters=nullptr) | |
Public Attributes | |
| const ErrorCode | errorCode |
| const std::shared_ptr< ResponseParameters > | parameters |
| Additional details about the error returned by Telegram, if any. | |
Exception type which is only thrown when Telegram refuses API request.
Definition at line 17 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 22 of file TgException.h.
| TgBot::TgException::TgException | ( | std::string_view | description, |
| ErrorCode | errorCode, | ||
| std::shared_ptr< ResponseParameters > | parameters = nullptr ) |
| const ErrorCode TgBot::TgException::errorCode |
Definition at line 37 of file TgException.h.
| const std::shared_ptr<ResponseParameters> TgBot::TgException::parameters |
Additional details about the error returned by Telegram, if any.
Definition at line 42 of file TgException.h.