yatbcpp
0.0.1
Yet another Telegram Bot CPP Library
src
ostream
telegram_api_error_ostream.cc
Go to the documentation of this file.
1
//
2
// Created by norbert on 21.08.17.
3
//
4
5
#include <ostream>
6
#include <
exceptions/telegram_api_error.h
>
7
namespace
yatbcpp
{
8
9
std::ostream&
operator<<
(std::ostream &o,
const
telegram_api_error
& telegramApiError) {
10
using namespace
std
;
11
return
o <<
"Telegram Api Error EXCEPTION<<"
<< telegramApiError.
errorcode
<<
" | "
<< telegramApiError.
message
<<
">>"
;
12
}
13
std::ostream&
operator<<
(std::ostream &o,
const
telegram_api_error
* telegramApiError) {
14
return
o<<*telegramApiError;
15
}
16
17
}
yatbcpp::telegram_api_error
Definition:
telegram_api_error.h:12
yatbcpp::operator<<
std::ostream & operator<<(std::ostream &o, const curl_error &curlError)
Definition:
curl_error_ostream.cc:9
telegram_api_error.h
std
yatbcpp
Definition:
Bot.h:27
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