summaryrefslogtreecommitdiff
path: root/include/tgbot/TgException.h
blob: 47b11f2cbc5431e4dda8e82f478aede50cc9f278 (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