40 :
Exception(
"Repo exception" ), _info( info )
58 #define DEF_CTORS( CLASS, MSG ) \
59 CLASS::CLASS() : RepoException( MSG ) {} \
60 CLASS::CLASS( const std::string & msg_r ) : RepoException( msg_r ) {} \
61 CLASS::CLASS( const RepoInfo & service_r ) : RepoException( service_r, MSG ) {} \
62 CLASS::CLASS( const RepoInfo & service_r, const std::string & msg_r ) : RepoException( service_r, msg_r ) {}
90 :
Exception(
"Service exception" ), _service( service_r )
94 :
Exception( msg_r ), _service( service_r )
108 #define DEF_CTORS( CLASS, MSG ) \
109 CLASS::CLASS() : ServiceException( MSG ) {} \
110 CLASS::CLASS( const std::string & msg_r ) : ServiceException( msg_r ) {} \
111 CLASS::CLASS( const ServiceInfo & service_r ) : ServiceException( service_r, MSG ) {} \
112 CLASS::CLASS( const ServiceInfo & service_r, const std::string & msg_r ) : ServiceException( service_r, msg_r ) {}
114 DEF_CTORS( ServiceNoAliasException,
"Service has no alias defined." );
115 DEF_CTORS( ServiceInvalidAliasException,
"Service has an invalid alias." );
116 DEF_CTORS( ServiceAlreadyExistsException,
"Service already exists." );
117 DEF_CTORS( ServiceNoUrlException,
"Service has no or invalid url defined." );
118 DEF_CTORS( ServicePluginInformalException,
"Service plugin has trouble providing the metadata but this should not be treated as error." );