14#include <zypp/base/String.h>
15#include <zypp/base/Gettext.h>
41 :
Exception(
"Repo exception" ), _info( info )
59#define DEF_CTORS( CLASS, MSG ) \
60 CLASS::CLASS() : RepoException( MSG ) {} \
61 CLASS::CLASS( const std::string & msg_r ) : RepoException( msg_r ) {} \
62 CLASS::CLASS( const RepoInfo & service_r ) : RepoException( service_r, MSG ) {} \
63 CLASS::CLASS( const RepoInfo & service_r, const std::string & msg_r ) : RepoException( service_r, msg_r ) {}
91 :
Exception(
"Service exception" ), _service( service_r )
95 :
Exception( msg_r ), _service( service_r )
109#define DEF_CTORS( CLASS, MSG ) \
110 CLASS::CLASS() : DEF_BASECLASS( MSG ) {} \
111 CLASS::CLASS( const std::string & msg_r ) : DEF_BASECLASS( msg_r ) {} \
112 CLASS::CLASS( const ServiceInfo & service_r ) : DEF_BASECLASS( service_r, MSG ) {} \
113 CLASS::CLASS( const ServiceInfo & service_r, const std::string & msg_r ) : DEF_BASECLASS( service_r, msg_r ) {}
115#define DEF_BASECLASS ServiceException
127#define DEF_BASECLASS ServicePluginException
#define DEF_CTORS(CLASS, MSG)
Base class for Exception.
virtual std::ostream & dumpOn(std::ostream &str) const
Overload this to print a proper error message.
What is known about a repository.
Url url() const
Pars pro toto: The first repository url.
Url url() const
The service url.
Repository already exists and some unique attribute can't be duplicated.
virtual std::ostream & dumpOn(std::ostream &str) const
Overload this to print a proper error message.
std::string alias() const
unique identifier for this source.
Thrown when the repo alias is found to be invalid.
thrown when it was impossible to determine an alias for this repo.
thrown when it was impossible to determine one url for this repo.
The repository cache is not built yet so you can't create the repostories from the cache.
thrown when it was impossible to match a repository
thrown when it was impossible to determine this repo type.
Service already exists and some unique attribute can't be duplicated.
virtual std::ostream & dumpOn(std::ostream &str) const
Overload this to print a proper error message.
virtual ~ServiceException()
Thrown when the repo alias is found to be invalid.
Service without alias was used in an operation.
Service has no or invalid url defined.
PLUGIN Service related exceptions.
Service plugin is immutable.
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.