1#ifndef ZYPP_NG_MEDIA_CURL_NETWORK_REQUEST_ERROR_H_INCLUDED
2#define ZYPP_NG_MEDIA_CURL_NETWORK_REQUEST_ERROR_H_INCLUDED
6#include <boost/any.hpp>
80 auto it = t.find(key);
81 if ( it != t.end() ) {
83 return boost::any_cast<T>( it->second );
84 }
catch (
const boost::bad_any_cast &) { }
92 const std::map<std::string, boost::any> &extraInfo ()
const;
97 std::string nativeErrorString()
const;
The NetworkRequestError class Represents a error that occured in.
NetworkRequestError(NetworkRequestError &&) noexcept=default
std::string toString() const
toString Returns a string representation of the error
NetworkRequestError(const NetworkRequestError &)=default
T extraInfoValue(const std::string &key, T &&defaultVal=T()) const
const std::map< std::string, boost::any > & extraInfo() const
Type type() const
type Returns the type of the error
bool isError() const
isError Will return true if this is a actual error
zypp::RWCOW_pointer< NetworkRequestErrorPrivate > d_ptr
Easy-to use interface to the ZYPP dependency resolver.
RW_pointer supporting 'copy on write' functionality.
#define ZYPP_DECLARE_PRIVATE(Class)
#define LIBZYPP_NG_EXPORT