yatbcpp
0.0.1
Yet another Telegram Bot CPP Library
src
ostream
curl_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/curl_error.h
>
7
namespace
yatbcpp
{
8
9
std::ostream&
operator<<
(std::ostream &o,
const
curl_error
& curlError) {
10
using namespace
std
;
11
return
o <<
"CURL Error Occured <<"
<< curlError.
errorcode
<<
" | "
<< curlError.
message
<<
">>"
;
12
}
13
std::ostream&
operator<<
(std::ostream &o,
const
curl_error
* curlError) {
14
return
o<<*curlError;
15
}
16
17
}
curl_error.h
yatbcpp::operator<<
std::ostream & operator<<(std::ostream &o, const curl_error &curlError)
Definition:
curl_error_ostream.cc:9
std
yatbcpp::curl_error
Definition:
curl_error.h:12
yatbcpp::curl_error::message
std::string message
Definition:
curl_error.h:19
yatbcpp
Definition:
Bot.h:27
yatbcpp::curl_error::errorcode
int errorcode
Definition:
curl_error.h:18
Generated by
1.8.13