libzypp: zypp/repo/RepoException.h Source File

libzypp 17.38.9

RepoException.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_REPO_REPOEXCEPTION_H
13#define ZYPP_REPO_REPOEXCEPTION_H
14
15#include <iosfwd>
16#include <string>
17
18#include <zypp-core/base/Exception.h>
19#include <zypp-core/base/UserRequestException>
20#include <zypp/RepoInfo.h>
21#include <zypp/ServiceInfo.h>
22
24namespace zypp
25{
27 namespace repo
28 {
29
33
37 class ZYPP_API RepoException : public Exception
38 {
39 public:
40 RepoException();
41 RepoException( const std::string & msg_r );
42 RepoException( const RepoInfo & info );
43 RepoException( const RepoInfo & info, const std::string & msg_r );
44 ~RepoException() throw() override;
45
46 RepoInfo info()
47 { return _info; }
48
49 std::string alias()
50 { return info().alias(); }
51
52 protected:
53 std::ostream & dumpOn( std::ostream & str ) const override;
54
55 private:
56 RepoInfo _info;
57 };
58
59
65 class ZYPP_API RepoNotCachedException : public RepoException
66 {
67 public:
68 RepoNotCachedException();
69 RepoNotCachedException( const std::string & msg_r );
70 RepoNotCachedException( const RepoInfo & info );
71 RepoNotCachedException( const RepoInfo & info, const std::string & msg_r );
72 };
73
78 class ZYPP_API RepoNoUrlException : public RepoException
79 {
80 public:
81 RepoNoUrlException();
82 RepoNoUrlException( const std::string & msg_r );
83 RepoNoUrlException( const RepoInfo & info );
84 RepoNoUrlException( const RepoInfo & info, const std::string & msg_r );
85 };
86
91 class ZYPP_API RepoNoAliasException : public RepoException
92 {
93 public:
94 RepoNoAliasException();
95 RepoNoAliasException( const std::string & msg_r );
96 RepoNoAliasException( const RepoInfo & info );
97 RepoNoAliasException( const RepoInfo & info, const std::string & msg_r );
98 };
99
103 class ZYPP_API RepoInvalidAliasException : public RepoException
104 {
105 public:
106 RepoInvalidAliasException();
107 RepoInvalidAliasException( const std::string & msg_r );
108 RepoInvalidAliasException( const RepoInfo & info );
109 RepoInvalidAliasException( const RepoInfo & info, const std::string & msg_r );
110 };
111
116 class ZYPP_API RepoNotFoundException : public RepoException
117 {
118 public:
119 RepoNotFoundException();
120 RepoNotFoundException( const std::string & msg_r );
121 RepoNotFoundException( const RepoInfo & info );
122 RepoNotFoundException( const RepoInfo & info, const std::string & msg_r );
123 };
124
129 class ZYPP_API RepoAlreadyExistsException : public RepoException
130 {
131 public:
132 RepoAlreadyExistsException();
133 RepoAlreadyExistsException( const std::string & msg_r );
134 RepoAlreadyExistsException( const RepoInfo & info );
135 RepoAlreadyExistsException( const RepoInfo & info, const std::string & msg_r );
136 };
137
142 class ZYPP_API RepoUnknownTypeException : public RepoException
143 {
144 public:
145 RepoUnknownTypeException();
146 RepoUnknownTypeException( const std::string & msg_r );
147 RepoUnknownTypeException( const RepoInfo & info );
148 RepoUnknownTypeException( const RepoInfo & info, const std::string & msg_r );
149 };
150
155 class ZYPP_API RepoMetadataException : public RepoException
156 {
157 public:
158 RepoMetadataException();
159 RepoMetadataException( const std::string & msg_r );
160 RepoMetadataException( const RepoInfo & info );
161 RepoMetadataException( const RepoInfo & info, const std::string & msg_r );
162 };
163
167 class ZYPP_API RepoNoPermissionException : public RepoException
168 {
169 public:
170 RepoNoPermissionException();
171 RepoNoPermissionException( const std::string & msg_r );
172 RepoNoPermissionException( const RepoInfo & info );
173 RepoNoPermissionException( const RepoInfo & info, const std::string & msg_r );
174 };
175
176
178
181
185
188 class ZYPP_API ServiceException : public Exception
189 {
190 public:
191 ServiceException();
192 ServiceException( const std::string & msg_r );
193 ServiceException( const ServiceInfo & service_r );
194 ServiceException( const ServiceInfo & service_r, const std::string & msg_r );
195 ~ServiceException() throw() override;
196
197 ServiceInfo service()
198 { return _service; }
199
200 std::string alias()
201 { return service().alias(); }
202
203 protected:
204 std::ostream & dumpOn( std::ostream & str ) const override;
205
206 private:
207 ServiceInfo _service;
208 };
209
210
213 class ZYPP_API ServiceNoAliasException : public ServiceException
214 {
215 public:
216 ServiceNoAliasException();
217 ServiceNoAliasException( const std::string & msg_r );
218 ServiceNoAliasException( const ServiceInfo & service_r );
219 ServiceNoAliasException( const ServiceInfo & service_r, const std::string & msg_r );
220 };
221
225 class ZYPP_API ServiceInvalidAliasException : public ServiceException
226 {
227 public:
228 ServiceInvalidAliasException();
229 ServiceInvalidAliasException( const std::string & msg_r );
230 ServiceInvalidAliasException( const ServiceInfo & info );
231 ServiceInvalidAliasException( const ServiceInfo & info, const std::string & msg_r );
232 };
233
236 class ZYPP_API ServiceAlreadyExistsException : public ServiceException
237 {
238 public:
239 ServiceAlreadyExistsException();
240 ServiceAlreadyExistsException( const std::string & msg_r );
241 ServiceAlreadyExistsException( const ServiceInfo & service_r );
242 ServiceAlreadyExistsException( const ServiceInfo & service_r, const std::string & msg_r );
243 };
244
247 class ZYPP_API ServiceNoUrlException : public ServiceException
248 {
249 public:
250 ServiceNoUrlException();
251 ServiceNoUrlException( const std::string & msg_r );
252 ServiceNoUrlException( const ServiceInfo & service_r );
253 ServiceNoUrlException( const ServiceInfo & service_r, const std::string & msg_r );
254 };
255
256
257
261
264 class ZYPP_API ServicePluginException : public ServiceException
265 {
266 public:
267 ServicePluginException();
268 ServicePluginException( const std::string & msg_r );
269 ServicePluginException( const ServiceInfo & service_r );
270 ServicePluginException( const ServiceInfo & service_r, const std::string & msg_r );
271 };
272
275 class ZYPP_API ServicePluginInformalException : public ServicePluginException
276 {
277 public:
278 ServicePluginInformalException();
279 ServicePluginInformalException( const std::string & msg_r );
280 ServicePluginInformalException( const ServiceInfo & service_r );
281 ServicePluginInformalException( const ServiceInfo & service_r, const std::string & msg_r );
282 };
283
286 class ZYPP_API ServicePluginImmutableException : public ServicePluginException
287 {
288 public:
289 ServicePluginImmutableException();
290 ServicePluginImmutableException( const std::string & msg_r );
291 ServicePluginImmutableException( const ServiceInfo & service_r );
292 ServicePluginImmutableException( const ServiceInfo & service_r, const std::string & msg_r );
293 };
294
295
297 } // namespace repo
300} // namespace zypp
302#endif // ZYPP_PARSER_TAGFILE_PARSEEXCEPTION_H
Exception.h
RepoInfo.h
ServiceInfo.h
zypp::Exception::Exception
Exception()
Default ctor.
Definition Exception.cc:94
zypp::RepoInfo
What is known about a repository.
Definition RepoInfo.h:72
zypp::ServiceInfo
Service data.
Definition ServiceInfo.h:37
zypp::repo::RepoAlreadyExistsException::RepoAlreadyExistsException
RepoAlreadyExistsException(const RepoInfo &info, const std::string &msg_r)
zypp::repo::RepoAlreadyExistsException::RepoAlreadyExistsException
RepoAlreadyExistsException(const std::string &msg_r)
zypp::repo::RepoAlreadyExistsException::RepoAlreadyExistsException
RepoAlreadyExistsException()
zypp::repo::RepoAlreadyExistsException::RepoAlreadyExistsException
RepoAlreadyExistsException(const RepoInfo &info)
zypp::repo::RepoException::info
RepoInfo info()
Definition RepoException.h:46
zypp::repo::RepoException::RepoException
RepoException()
Definition RepoException.cc:32
zypp::repo::RepoException::_info
RepoInfo _info
Definition RepoException.h:56
zypp::repo::RepoException::alias
std::string alias()
Definition RepoException.h:49
zypp::repo::RepoInvalidAliasException::RepoInvalidAliasException
RepoInvalidAliasException()
zypp::repo::RepoInvalidAliasException::RepoInvalidAliasException
RepoInvalidAliasException(const RepoInfo &info, const std::string &msg_r)
zypp::repo::RepoInvalidAliasException::RepoInvalidAliasException
RepoInvalidAliasException(const std::string &msg_r)
zypp::repo::RepoInvalidAliasException::RepoInvalidAliasException
RepoInvalidAliasException(const RepoInfo &info)
zypp::repo::RepoMetadataException::RepoMetadataException
RepoMetadataException()
zypp::repo::RepoMetadataException::RepoMetadataException
RepoMetadataException(const std::string &msg_r)
zypp::repo::RepoMetadataException::RepoMetadataException
RepoMetadataException(const RepoInfo &info, const std::string &msg_r)
zypp::repo::RepoMetadataException::RepoMetadataException
RepoMetadataException(const RepoInfo &info)
zypp::repo::RepoNoAliasException::RepoNoAliasException
RepoNoAliasException(const RepoInfo &info)
zypp::repo::RepoNoAliasException::RepoNoAliasException
RepoNoAliasException()
zypp::repo::RepoNoAliasException::RepoNoAliasException
RepoNoAliasException(const std::string &msg_r)
zypp::repo::RepoNoAliasException::RepoNoAliasException
RepoNoAliasException(const RepoInfo &info, const std::string &msg_r)
zypp::repo::RepoNoPermissionException::RepoNoPermissionException
RepoNoPermissionException(const RepoInfo &info)
zypp::repo::RepoNoPermissionException::RepoNoPermissionException
RepoNoPermissionException()
zypp::repo::RepoNoPermissionException::RepoNoPermissionException
RepoNoPermissionException(const RepoInfo &info, const std::string &msg_r)
zypp::repo::RepoNoPermissionException::RepoNoPermissionException
RepoNoPermissionException(const std::string &msg_r)
zypp::repo::RepoNoUrlException::RepoNoUrlException
RepoNoUrlException(const RepoInfo &info)
zypp::repo::RepoNoUrlException::RepoNoUrlException
RepoNoUrlException(const RepoInfo &info, const std::string &msg_r)
zypp::repo::RepoNoUrlException::RepoNoUrlException
RepoNoUrlException(const std::string &msg_r)
zypp::repo::RepoNoUrlException::RepoNoUrlException
RepoNoUrlException()
zypp::repo::RepoNotCachedException::RepoNotCachedException
RepoNotCachedException(const std::string &msg_r)
zypp::repo::RepoNotCachedException::RepoNotCachedException
RepoNotCachedException()
zypp::repo::RepoNotCachedException::RepoNotCachedException
RepoNotCachedException(const RepoInfo &info, const std::string &msg_r)
zypp::repo::RepoNotCachedException::RepoNotCachedException
RepoNotCachedException(const RepoInfo &info)
zypp::repo::RepoNotFoundException::RepoNotFoundException
RepoNotFoundException(const std::string &msg_r)
zypp::repo::RepoNotFoundException::RepoNotFoundException
RepoNotFoundException()
zypp::repo::RepoNotFoundException::RepoNotFoundException
RepoNotFoundException(const RepoInfo &info, const std::string &msg_r)
zypp::repo::RepoNotFoundException::RepoNotFoundException
RepoNotFoundException(const RepoInfo &info)
zypp::repo::RepoUnknownTypeException::RepoUnknownTypeException
RepoUnknownTypeException(const RepoInfo &info)
zypp::repo::RepoUnknownTypeException::RepoUnknownTypeException
RepoUnknownTypeException()
zypp::repo::RepoUnknownTypeException::RepoUnknownTypeException
RepoUnknownTypeException(const std::string &msg_r)
zypp::repo::RepoUnknownTypeException::RepoUnknownTypeException
RepoUnknownTypeException(const RepoInfo &info, const std::string &msg_r)
zypp::repo::ServiceAlreadyExistsException::ServiceAlreadyExistsException
ServiceAlreadyExistsException(const ServiceInfo &service_r, const std::string &msg_r)
zypp::repo::ServiceAlreadyExistsException::ServiceAlreadyExistsException
ServiceAlreadyExistsException(const ServiceInfo &service_r)
zypp::repo::ServiceAlreadyExistsException::ServiceAlreadyExistsException
ServiceAlreadyExistsException(const std::string &msg_r)
zypp::repo::ServiceAlreadyExistsException::ServiceAlreadyExistsException
ServiceAlreadyExistsException()
zypp::repo::ServiceException::_service
ServiceInfo _service
Definition RepoException.h:207
zypp::repo::ServiceException::service
ServiceInfo service()
Definition RepoException.h:197
zypp::repo::ServiceException::alias
std::string alias()
Definition RepoException.h:200
zypp::repo::ServiceException::ServiceException
ServiceException()
Definition RepoException.cc:83
zypp::repo::ServiceInvalidAliasException::ServiceInvalidAliasException
ServiceInvalidAliasException(const ServiceInfo &info, const std::string &msg_r)
zypp::repo::ServiceInvalidAliasException::ServiceInvalidAliasException
ServiceInvalidAliasException()
zypp::repo::ServiceInvalidAliasException::ServiceInvalidAliasException
ServiceInvalidAliasException(const ServiceInfo &info)
zypp::repo::ServiceInvalidAliasException::ServiceInvalidAliasException
ServiceInvalidAliasException(const std::string &msg_r)
zypp::repo::ServiceNoAliasException::ServiceNoAliasException
ServiceNoAliasException(const ServiceInfo &service_r, const std::string &msg_r)
zypp::repo::ServiceNoAliasException::ServiceNoAliasException
ServiceNoAliasException(const ServiceInfo &service_r)
zypp::repo::ServiceNoAliasException::ServiceNoAliasException
ServiceNoAliasException()
zypp::repo::ServiceNoAliasException::ServiceNoAliasException
ServiceNoAliasException(const std::string &msg_r)
zypp::repo::ServiceNoUrlException::ServiceNoUrlException
ServiceNoUrlException(const std::string &msg_r)
zypp::repo::ServiceNoUrlException::ServiceNoUrlException
ServiceNoUrlException(const ServiceInfo &service_r, const std::string &msg_r)
zypp::repo::ServiceNoUrlException::ServiceNoUrlException
ServiceNoUrlException(const ServiceInfo &service_r)
zypp::repo::ServiceNoUrlException::ServiceNoUrlException
ServiceNoUrlException()
zypp::repo::ServicePluginException::ServicePluginException
ServicePluginException(const ServiceInfo &service_r, const std::string &msg_r)
zypp::repo::ServicePluginException::ServicePluginException
ServicePluginException(const ServiceInfo &service_r)
zypp::repo::ServicePluginException::ServicePluginException
ServicePluginException(const std::string &msg_r)
zypp::repo::ServicePluginException::ServicePluginException
ServicePluginException()
zypp::repo::ServicePluginImmutableException::ServicePluginImmutableException
ServicePluginImmutableException(const ServiceInfo &service_r, const std::string &msg_r)
zypp::repo::ServicePluginImmutableException::ServicePluginImmutableException
ServicePluginImmutableException(const ServiceInfo &service_r)
zypp::repo::ServicePluginImmutableException::ServicePluginImmutableException
ServicePluginImmutableException()
zypp::repo::ServicePluginImmutableException::ServicePluginImmutableException
ServicePluginImmutableException(const std::string &msg_r)
zypp::repo::ServicePluginInformalException::ServicePluginInformalException
ServicePluginInformalException(const ServiceInfo &service_r, const std::string &msg_r)
zypp::repo::ServicePluginInformalException::ServicePluginInformalException
ServicePluginInformalException(const ServiceInfo &service_r)
zypp::repo::ServicePluginInformalException::ServicePluginInformalException
ServicePluginInformalException()
zypp::repo::ServicePluginInformalException::ServicePluginInformalException
ServicePluginInformalException(const std::string &msg_r)
str
String related utilities and Regular expression matching.
zypp::repo
Definition DeltaCandidates.cc:30
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2
zypp::ZYPP_API
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
Definition Arch.h:173
zypp::dumpOn
std::ostream & dumpOn(std::ostream &str, const Capability &obj)
relates: Capability Detailed stream output
Definition Capability.cc:589