libzypp  17.22.0
networkrequesterror_p.h
Go to the documentation of this file.
2 #include <map>
3 
4 namespace zyppng {
5 
7 {
8 public:
9  NetworkRequestErrorPrivate( NetworkRequestError::Type code, std::string &&msg, std::map<std::string, boost::any> && extraInfo );
10 
12 
14  std::string _errorMessage;
15  std::map<std::string, boost::any> _extraInfo;
16 
17  static zyppng::NetworkRequestError customError( NetworkRequestError::Type t, std::string &&errorMsg = "", std::map<std::string, boost::any> &&extraInfo = {} );
18  static zyppng::NetworkRequestError fromCurlError( NetworkRequest &req, int nativeCode , const char *errBuf );
19  static zyppng::NetworkRequestError fromCurlMError ( int nativeCode );
20  static std::string typeToString( NetworkRequestError::Type t );
21 };
22 
23 }
zyppng::NetworkRequestErrorPrivate::customError
static zyppng::NetworkRequestError customError(NetworkRequestError::Type t, std::string &&errorMsg="", std::map< std::string, boost::any > &&extraInfo={})
Definition: networkrequesterror.cc:23
zyppng::NetworkRequestError::Type
Type
Definition: networkrequesterror.h:23
zyppng::NetworkRequestErrorPrivate::clone
NetworkRequestErrorPrivate * clone() const
Definition: networkrequesterror.cc:18
zyppng::NetworkRequestErrorPrivate::_errorCode
NetworkRequestError::Type _errorCode
Definition: networkrequesterror_p.h:13
networkrequesterror.h
zyppng::NetworkRequestErrorPrivate::NetworkRequestErrorPrivate
NetworkRequestErrorPrivate(NetworkRequestError::Type code, std::string &&msg, std::map< std::string, boost::any > &&extraInfo)
Definition: networkrequesterror.cc:12
zyppng::NetworkRequestErrorPrivate::fromCurlError
static zyppng::NetworkRequestError fromCurlError(NetworkRequest &req, int nativeCode, const char *errBuf)
Definition: networkrequesterror.cc:28
zyppng::NetworkRequestErrorPrivate::typeToString
static std::string typeToString(NetworkRequestError::Type t)
Definition: networkrequesterror.cc:232
zyppng::NetworkRequestErrorPrivate
Definition: networkrequesterror_p.h:6
zyppng::NetworkRequestError
The NetworkRequestError class Represents a error that occured in.
Definition: networkrequesterror.h:20
zyppng::NetworkRequestError::InternalError
Definition: networkrequesterror.h:25
zyppng::NetworkRequestErrorPrivate::_errorMessage
std::string _errorMessage
Definition: networkrequesterror_p.h:14
zyppng
Definition: abstracteventsource.cc:8
zyppng::NetworkRequest
Definition: request.h:35
zyppng::NetworkRequestErrorPrivate::fromCurlMError
static zyppng::NetworkRequestError fromCurlMError(int nativeCode)
Definition: networkrequesterror.cc:187
zyppng::NetworkRequestErrorPrivate::_extraInfo
std::map< std::string, boost::any > _extraInfo
Definition: networkrequesterror_p.h:15