libzypp: zypp-curl/ng/network/private/networkrequesterror_p.h Source File

libzypp 17.38.14

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
17#include <zypp-curl/ng/network/networkrequesterror.h>
18#include <map>
19
20namespace zyppng {
21
22 class NetworkRequestErrorPrivate
23{
24public:
25 NetworkRequestErrorPrivate( NetworkRequestError::Type code, std::string &&msg, std::map<std::string, boost::any> && extraInfo );
26
27 NetworkRequestErrorPrivate *clone () const;
28
29 NetworkRequestError::Type _errorCode = NetworkRequestError::InternalError;
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
zyppng::NetworkRequestErrorPrivate::typeToString
static std::string typeToString(NetworkRequestError::Type t)
Definition networkrequesterror.cc:250
zyppng::NetworkRequestErrorPrivate::NetworkRequestErrorPrivate
NetworkRequestErrorPrivate(NetworkRequestError::Type code, std::string &&msg, std::map< std::string, boost::any > &&extraInfo)
Definition networkrequesterror.cc:23
zyppng::NetworkRequestErrorPrivate::fromCurlMError
static zyppng::NetworkRequestError fromCurlMError(int nativeCode)
Definition networkrequesterror.cc:206
zyppng::NetworkRequestErrorPrivate::clone
NetworkRequestErrorPrivate * clone() const
Definition networkrequesterror.cc:29
zyppng::NetworkRequestErrorPrivate::fromCurlError
static zyppng::NetworkRequestError fromCurlError(NetworkRequest &req, int nativeCode, const std::string &nativeError)
Definition networkrequesterror.cc:39
zyppng::NetworkRequestErrorPrivate::customError
static zyppng::NetworkRequestError customError(NetworkRequestError::Type t, std::string &&errorMsg="", std::map< std::string, boost::any > &&extraInfo={})
Definition networkrequesterror.cc:34
zyppng::NetworkRequestErrorPrivate::_extraInfo
std::map< std::string, boost::any > _extraInfo
Definition networkrequesterror_p.h:31
zyppng::NetworkRequestErrorPrivate::_errorMessage
std::string _errorMessage
Definition networkrequesterror_p.h:30
zyppng::NetworkRequestErrorPrivate::_errorCode
NetworkRequestError::Type _errorCode
Definition networkrequesterror_p.h:29
zyppng::NetworkRequestError
The NetworkRequestError class Represents a error that occured in.
Definition networkrequesterror.h:24
zyppng::NetworkRequestError::Type
Type
Definition networkrequesterror.h:26
zyppng::NetworkRequestError::InternalError
@ InternalError
Definition networkrequesterror.h:28
zyppng::NetworkRequest
Definition request.h:43
zyppng
Definition MediaNetworkRequestExecutor.h:16
networkrequesterror.h