summaryrefslogtreecommitdiff
path: root/include/tgbot/TgException.h
blob: e80711cbcc645a5872395bbb4469ce92ee78a59b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef TGBOT_TGEXCEPTION_H
#define TGBOT_TGEXCEPTION_H

#include "tgbot/export.h"

#include <string>
#include <stdexcept>

namespace TgBot {

/**
 * @brief Exception type which is only thrown when Telegram refuses API request.
 *
 * @ingroup general
 */
class TGBOT_API TgException : public std::runtime_error {

public:
    explicit TgException(const std::string& description);
};

}

#endif //TGBOT_TGEXCEPTION_H