libzypp 17.31.23
networkrequesterror_p.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8----------------------------------------------------------------------/
9*
10* This file contains private API, this might break at any time between releases.
11* You have been warned!
12*
13*/
14#ifndef ZYPP_NG_MEDIA_CURL_PRIVATE_NETWORKREQUESTERROR_P_H_INCLUDED
15#define ZYPP_NG_MEDIA_CURL_PRIVATE_NETWORKREQUESTERROR_P_H_INCLUDED
16
18#include <map>
19
20namespace zyppng {
21
23{
24public:
25 NetworkRequestErrorPrivate( NetworkRequestError::Type code, std::string &&msg, std::map<std::string, boost::any> && extraInfo );
26
28
30 std::string _errorMessage;
31 std::map<std::string, boost::any> _extraInfo;
32
33 static zyppng::NetworkRequestError customError( NetworkRequestError::Type t, std::string &&errorMsg = "", std::map<std::string, boost::any> &&extraInfo = {} );
34 static zyppng::NetworkRequestError fromCurlError( NetworkRequest &req, int nativeCode , const std::string &nativeError );
35 static zyppng::NetworkRequestError fromCurlMError ( int nativeCode );
36 static std::string typeToString( NetworkRequestError::Type t );
37};
38
39}
40
41#endif
static std::string typeToString(NetworkRequestError::Type t)
static zyppng::NetworkRequestError fromCurlMError(int nativeCode)
NetworkRequestErrorPrivate * clone() const
static zyppng::NetworkRequestError fromCurlError(NetworkRequest &req, int nativeCode, const std::string &nativeError)
static zyppng::NetworkRequestError customError(NetworkRequestError::Type t, std::string &&errorMsg="", std::map< std::string, boost::any > &&extraInfo={})
std::map< std::string, boost::any > _extraInfo
NetworkRequestError::Type _errorCode
The NetworkRequestError class Represents a error that occured in.