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> 13 class NetworkRequestErrorPrivate;
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;
bool isError() const
isError Will return true if this is a actual error
zypp::RWCOW_pointer< NetworkRequestErrorPrivate > d_ptr
std::string toString() const
toString Returns a string representation of the error
std::string nativeErrorString() const
const std::map< std::string, boost::any > & extraInfo() const
T extraInfoValue(const std::string &key, T &&defaultVal=T()) const
The NetworkRequestError class Represents a error that occured in.
#define ZYPP_DECLARE_PRIVATE(Class)
Type type() const
type Returns the type of the error
Easy-to use interface to the ZYPP dependency resolver.
RW_pointer supporting 'copy on write' functionality.