1#ifndef ZYPP_NG_MEDIA_CURL_NETWORK_REQUEST_ERROR_H_INCLUDED
2#define ZYPP_NG_MEDIA_CURL_NETWORK_REQUEST_ERROR_H_INCLUDED
4#include <zypp-core/zyppng/base/zyppglobal.h>
5#include <zypp-core/base/PtrTypes.h>
6#include <boost/any.hpp>
13class NetworkRequestErrorPrivate;
61 std::string toString ()
const;
67 bool isError ()
const;
75 auto &t = extraInfo();
76 auto it = t.find(key);
77 if ( it != t.end() ) {
79 return boost::any_cast<T>( it->second );
80 }
catch (
const boost::bad_any_cast &) { }
88 const std::map<std::string, boost::any> &extraInfo ()
const;
93 std::string nativeErrorString()
const;
The NetworkRequestError class Represents a error that occured in.
T extraInfoValue(const std::string &key, T &&defaultVal=T()) const
Easy-to use interface to the ZYPP dependency resolver.