yatbcpp
0.0.1
Yet another Telegram Bot CPP Library
inc
exceptions
telegram_api_error.h
Go to the documentation of this file.
1
//
2
// Created by norbert on 22.08.17.
3
//
4
5
#ifndef YATBCPP_TELEGRAM_API_ERROR_H
6
#define YATBCPP_TELEGRAM_API_ERROR_H
7
8
#include <ostream>
9
#include <string>
10
11
namespace
yatbcpp
{
12
class
telegram_api_error
{
13
public
:
14
telegram_api_error
(
int
errorcode
, std::string
message
);
15
friend
std::ostream&
operator<<
(std::ostream& o,
const
telegram_api_error
& U);
16
friend
std::ostream&
operator<<
(std::ostream& o,
const
telegram_api_error
* U);
17
private
:
18
int
errorcode
;
19
std::string
message
;
20
};
21
}
22
23
#endif //YATBCPP_TELEGRAM_API_ERROR_H
yatbcpp::telegram_api_error
Definition:
telegram_api_error.h:12
yatbcpp
Definition:
Bot.h:27
yatbcpp::telegram_api_error::telegram_api_error
telegram_api_error(int errorcode, std::string message)
Definition:
telegram_api_error.cc:10
yatbcpp::telegram_api_error::operator<<
friend std::ostream & operator<<(std::ostream &o, const telegram_api_error &U)
Definition:
telegram_api_error_ostream.cc:9
yatbcpp::telegram_api_error::errorcode
int errorcode
Definition:
telegram_api_error.h:18
yatbcpp::telegram_api_error::message
std::string message
Definition:
telegram_api_error.h:19
Generated by
1.8.13