|
libzypp
17.22.0
|
The NetworkRequestError class Represents a error that occured in. More...
#include <networkrequesterror.h>
Public Types | |
| enum | Type { NoError = 0, InternalError, Cancelled, PeerCertificateInvalid, ConnectionFailed, ExceededMaxLen, InvalidChecksum, UnsupportedProtocol, MalformedURL, TemporaryProblem, Timeout, Forbidden, NotFound, Unauthorized, AuthFailed, ServerReturnedError } |
Public Member Functions | |
| NetworkRequestError () | |
| Type | type () const |
| type Returns the type of the error More... | |
| std::string | toString () const |
| toString Returns a string representation of the error More... | |
| bool | isError () const |
| isError Will return true if this is a actual error More... | |
| template<typename T > | |
| T | extraInfoValue (const std::string &key, T &&defaultVal=T()) const |
| const std::map< std::string, boost::any > & | extraInfo () const |
| std::string | nativeErrorString () const |
Protected Member Functions | |
| NetworkRequestError (NetworkRequestErrorPrivate &d) | |
Private Attributes | |
| zypp::RWCOW_pointer< NetworkRequestErrorPrivate > | d_ptr |
The NetworkRequestError class Represents a error that occured in.
Definition at line 20 of file networkrequesterror.h.
Definition at line 23 of file networkrequesterror.h.
| zyppng::NetworkRequestError::NetworkRequestError | ( | ) |
Definition at line 208 of file networkrequesterror.cc.
|
protected |
Definition at line 204 of file networkrequesterror.cc.
| NetworkRequestError::Type zyppng::NetworkRequestError::type | ( | ) | const |
type Returns the type of the error
Definition at line 212 of file networkrequesterror.cc.
| std::string zyppng::NetworkRequestError::toString | ( | ) | const |
toString Returns a string representation of the error
Definition at line 217 of file networkrequesterror.cc.
| bool zyppng::NetworkRequestError::isError | ( | ) | const |
isError Will return true if this is a actual error
Definition at line 222 of file networkrequesterror.cc.
|
inline |
Tries to find key in the extraInfo map, if the key is not found or the value can not be converted to the requested type defaultVal is returned.
Definition at line 67 of file networkrequesterror.h.
| const std::map< std::string, boost::any > & zyppng::NetworkRequestError::extraInfo | ( | ) | const |
Returns the error extraInfo map.
Definition at line 227 of file networkrequesterror.cc.
| std::string zyppng::NetworkRequestError::nativeErrorString | ( | ) | const |
Returns the string returned by the backend if available.
Definition at line 271 of file networkrequesterror.cc.
|
private |
Definition at line 93 of file networkrequesterror.h.