yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
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>
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 }
std::ostream & operator<<(std::ostream &o, const curl_error &curlError)
Definition: Bot.h:27