Cppgram  1.0.0
Easy and modern C++14 Telegram Bot API wrapper
exception.hpp
1 #ifndef CPPGRAM_EXCEPTIONS_HPP
2 #define CPPGRAM_EXCEPTIONS_HPP
3 
4 #include <exception>
5 
6 namespace cppgram
7 {
13 class ThreadException : public std::exception
14 {
15  public:
16  virtual const char *what() const throw() { return "Thread could not started correctly"; }
17 };
18 
24 class JsonParseError : public std::exception
25 {
26  public:
27  virtual const char *what() const throw() { return "Error while parsing JSON document"; }
28 };
29 
35 class KeyboardNotValid : public std::exception
36 {
37  public:
38  virtual const char *what() const throw() { return "Inline keyboard contains not valid data"; }
39 };
40 }
41 
42 #endif
raises if Keyboard is not valid (critical).
Definition: exception.hpp:35
If jsoncpp can&#39;t parse the JSON document (critical).
Definition: exception.hpp:24
main namespace for Cppgram
raises if thread could not start (fatal).
Definition: exception.hpp:13