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 }
static zyppng::NetworkRequestError fromCurlMError(int nativeCode)
NetworkRequestError::Type _errorCode
static std::string typeToString(NetworkRequestError::Type t)
NetworkRequestErrorPrivate(NetworkRequestError::Type code, std::string &&msg, std::map< std::string, boost::any > &&extraInfo)
The NetworkRequestError class Represents a error that occured in.
static zyppng::NetworkRequestError fromCurlError(NetworkRequest &req, int nativeCode, const char *errBuf)
NetworkRequestErrorPrivate * clone() const
static zyppng::NetworkRequestError customError(NetworkRequestError::Type t, std::string &&errorMsg="", std::map< std::string, boost::any > &&extraInfo={})
std::map< std::string, boost::any > _extraInfo