libzypp: zypp-media/mediaexception.h Source File

libzypp 17.36.6

mediaexception.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_MEDIA_MEDIAEXCEPTION_H
13#define ZYPP_MEDIA_MEDIAEXCEPTION_H
14
15#include <iosfwd>
16
17#include <string>
18#include <utility>
19#include <vector>
20
21#include <zypp-core/base/Exception.h>
22#include <zypp-core/Pathname.h>
23#include <zypp-core/Url.h>
24#include <zypp-core/ByteCount.h>
25
27namespace zypp
28{
29 namespace media {
31 //
32 // CLASS NAME : MediaException
36 class ZYPP_API MediaException : public Exception
37 {
38 public:
42 MediaException() : Exception( "Media Exception" )
43 {}
44
47 MediaException( const std::string & msg_r )
48 : Exception( msg_r )
49 {}
50
52 ~MediaException() noexcept override;
53 };
54
55 class ZYPP_API MediaMountException : public MediaException
56 {
57 public:
58 MediaMountException()
59 : MediaException( "Media Mount Exception" )
60 {}
61
65 MediaMountException( std::string error_r,
66 std::string source_r,
67 std::string target_r,
68 std::string cmdout_r="")
69 : MediaException()
70 , _error(std::move(error_r))
71 , _source(std::move(source_r))
72 , _target(std::move(target_r))
73 , _cmdout(std::move(cmdout_r))
74 {}
75
76 ~MediaMountException() noexcept override {}
77
78 const std::string & mountError() const
79 { return _error; }
80 const std::string & mountSource() const
81 { return _source; }
82 const std::string & mountTarget() const
83 { return _target; }
84 const std::string & mountOutput() const
85 { return _cmdout; }
86
87 protected:
88 std::ostream & dumpOn( std::ostream & str ) const override;
89 private:
90 std::string _error;
91 std::string _source;
92 std::string _target;
93 std::string _cmdout;
94 };
95
96 class ZYPP_API MediaUnmountException : public MediaException
97 {
98 public:
102 MediaUnmountException( std::string error_r,
103 std::string path_r )
104 : MediaException()
105 , _error(std::move(error_r))
106 , _path(std::move(path_r))
107 {}
108
109 ~MediaUnmountException() noexcept override {}
110 protected:
111 std::ostream & dumpOn( std::ostream & str ) const override;
112 private:
113 std::string _error;
114 std::string _path;
115 };
116
117 class ZYPP_API MediaJammedException : public MediaException
118 {
119 public:
123 MediaJammedException() : MediaException( "Media Jammed Exception" )
124 {}
125
127 ~MediaJammedException() noexcept override {};
128 protected:
129 std::ostream & dumpOn( std::ostream & str ) const override;
130
131 private:
132 };
133
134 class ZYPP_API MediaBadFilenameException : public MediaException
135 {
136 public:
137 MediaBadFilenameException(std::string filename_r)
138 : MediaException()
139 , _filename(std::move(filename_r))
140 {}
141 ~MediaBadFilenameException() noexcept override {}
142 std::string filename() const { return _filename; }
143 protected:
144 std::ostream & dumpOn( std::ostream & str ) const override;
145 private:
146 std::string _filename;
147 };
148
149 class ZYPP_API MediaNotOpenException : public MediaException
150 {
151 public:
152 MediaNotOpenException(std::string action_r)
153 : MediaException()
154 , _action(std::move(action_r))
155 {}
156 ~MediaNotOpenException() noexcept override {}
157 protected:
158 std::ostream & dumpOn( std::ostream & str ) const override;
159 private:
160 std::string _action;
161 };
162
163 class ZYPP_API MediaFileNotFoundException : public MediaException
164 {
165 public:
166 MediaFileNotFoundException(const Url & url_r,
167 const Pathname & filename_r)
168 : MediaException()
169 , _url(url_r.asString())
170 , _filename(filename_r.asString())
171 {}
172 ~MediaFileNotFoundException() noexcept override {}
173 protected:
174 std::ostream & dumpOn( std::ostream & str ) const override;
175 private:
176 std::string _url;
177 std::string _filename;
178 };
179
180 class ZYPP_API MediaWriteException : public MediaException
181 {
182 public:
183 MediaWriteException(const Pathname & filename_r)
184 : MediaException()
185 , _filename(filename_r.asString())
186 {}
187 ~MediaWriteException() noexcept override {}
188 protected:
189 std::ostream & dumpOn( std::ostream & str ) const override;
190 private:
191 std::string _filename;
192 };
193
194 class ZYPP_API MediaNotAttachedException : public MediaException
195 {
196 public:
197 MediaNotAttachedException(const Url & url_r)
198 : MediaException()
199 , _url(url_r.asString())
200 {}
201 ~MediaNotAttachedException() noexcept override {}
202 protected:
203 std::ostream & dumpOn( std::ostream & str ) const override;
204 private:
205 std::string _url;
206 };
207
208 class ZYPP_API MediaBadAttachPointException : public MediaException
209 {
210 public:
211 MediaBadAttachPointException(const Url & url_r)
212 : MediaException()
213 , _url(url_r.asString())
214 {}
215 ~MediaBadAttachPointException() noexcept override {}
216 protected:
217 std::ostream & dumpOn( std::ostream & str ) const override;
218 private:
219 std::string _url;
220 };
221
222 class ZYPP_API MediaCurlInitException : public MediaException
223 {
224 public:
225 MediaCurlInitException(const Url & url_r)
226 : MediaException()
227 , _url(url_r.asString())
228 {}
229 ~MediaCurlInitException() noexcept override {}
230 protected:
231 std::ostream & dumpOn( std::ostream & str ) const override;
232 private:
233 std::string _url;
234 };
235
236 class ZYPP_API MediaSystemException : public MediaException
237 {
238 public:
239 MediaSystemException(const Url & url_r,
240 std::string message_r)
241 : MediaException()
242 , _url(url_r.asString())
243 , _message(std::move(message_r))
244 {}
245 ~MediaSystemException() noexcept override {}
246 protected:
247 std::ostream & dumpOn( std::ostream & str ) const override;
248 private:
249 std::string _url;
250 std::string _message;
251 };
252
253 class ZYPP_API MediaNotAFileException : public MediaException
254 {
255 public:
256 MediaNotAFileException(const Url & url_r,
257 const Pathname & path_r)
258 : MediaException()
259 , _url(url_r.asString())
260 , _path(path_r.asString())
261 {}
262 ~MediaNotAFileException() noexcept override {}
263 protected:
264 std::ostream & dumpOn( std::ostream & str ) const override;
265 private:
266 std::string _url;
267 std::string _path;
268 };
269
270 class ZYPP_API MediaNotADirException : public MediaException
271 {
272 public:
273 MediaNotADirException(const Url & url_r,
274 const Pathname & path_r)
275 : MediaException()
276 , _url(url_r.asString())
277 , _path(path_r.asString())
278 {}
279 ~MediaNotADirException() noexcept override {}
280 protected:
281 std::ostream & dumpOn( std::ostream & str ) const override;
282 private:
283 std::string _url;
284 std::string _path;
285 };
286
287 class ZYPP_API MediaBadUrlException : public MediaException
288 {
289 public:
290 MediaBadUrlException(const Url & url_r,
291 std::string msg_r = std::string())
292 : MediaException()
293 , _url(url_r.asString())
294 , _msg(std::move(msg_r))
295 {}
296 ~MediaBadUrlException() noexcept override {}
297 protected:
298 std::ostream & dumpOn( std::ostream & str ) const override;
299 std::string _url;
300 std::string _msg;
301 };
302
303 class ZYPP_API MediaBadUrlEmptyHostException : public MediaBadUrlException
304 {
305 public:
306 MediaBadUrlEmptyHostException(const Url & url_r)
307 : MediaBadUrlException(url_r)
308 {}
309 ~MediaBadUrlEmptyHostException() noexcept override {}
310 protected:
311 std::ostream & dumpOn( std::ostream & str ) const override;
312 };
313
314 class ZYPP_API MediaBadUrlEmptyFilesystemException : public MediaBadUrlException
315 {
316 public:
317 MediaBadUrlEmptyFilesystemException(const Url & url_r)
318 : MediaBadUrlException(url_r)
319 {}
320 ~MediaBadUrlEmptyFilesystemException() noexcept override {}
321 protected:
322 std::ostream & dumpOn( std::ostream & str ) const override;
323 };
324
325 class ZYPP_API MediaBadUrlEmptyDestinationException : public MediaBadUrlException
326 {
327 public:
328 MediaBadUrlEmptyDestinationException(const Url & url_r)
329 : MediaBadUrlException(url_r)
330 {}
331 ~MediaBadUrlEmptyDestinationException() noexcept override {}
332 protected:
333 std::ostream & dumpOn( std::ostream & str ) const override;
334 };
335
336 class ZYPP_API MediaUnsupportedUrlSchemeException : public MediaBadUrlException
337 {
338 public:
339 MediaUnsupportedUrlSchemeException(const Url & url_r)
340 : MediaBadUrlException(url_r)
341 {}
342 ~MediaUnsupportedUrlSchemeException() noexcept override {}
343 protected:
344 std::ostream & dumpOn( std::ostream & str ) const override;
345 };
346
347 class ZYPP_API MediaNotSupportedException : public MediaException
348 {
349 public:
350 MediaNotSupportedException(const Url & url_r)
351 : MediaException()
352 , _url(url_r.asString())
353 {}
354 ~MediaNotSupportedException() noexcept override {}
355 protected:
356 std::ostream & dumpOn( std::ostream & str ) const override;
357 std::string _url;
358 };
359
360 class ZYPP_API MediaCurlException : public MediaException
361 {
362 public:
363 MediaCurlException(const Url & url_r,
364 std::string err_r,
365 std::string msg_r)
366 : MediaException()
367 , _url(url_r.asString())
368 , _err(std::move(err_r))
369 , _msg(std::move(msg_r))
370 {}
371 ~MediaCurlException() noexcept override {}
372 std::string errstr() const { return _err; }
373 protected:
374 std::ostream & dumpOn( std::ostream & str ) const override;
375 std::string _url;
376 std::string _err;
377 std::string _msg;
378 };
379
380 class ZYPP_API MediaCurlSetOptException : public MediaException
381 {
382 public:
383 MediaCurlSetOptException(const Url & url_r, std::string msg_r)
384 : MediaException()
385 , _url(url_r.asString())
386 , _msg(std::move(msg_r))
387 {}
388 ~MediaCurlSetOptException() noexcept override {}
389 protected:
390 std::ostream & dumpOn( std::ostream & str ) const override;
391 std::string _url;
392 std::string _msg;
393 };
394
395 class ZYPP_API MediaNotDesiredException : public MediaException
396 {
397 public:
398 MediaNotDesiredException(const Url & url_r)
399 : MediaException()
400 , _url(url_r.asString())
401 {}
402 ~MediaNotDesiredException() noexcept override {}
403 protected:
404 std::ostream & dumpOn( std::ostream & str ) const override;
405 private:
406 std::string _url;
407 };
408
409 class ZYPP_API MediaIsSharedException : public MediaException
410 {
411 public:
415 MediaIsSharedException(std::string name)
416 : MediaException()
417 , _name(std::move(name))
418 {}
419 ~MediaIsSharedException() noexcept override {}
420 protected:
421 std::ostream & dumpOn( std::ostream & str ) const override;
422 private:
423 std::string _name;
424 };
425
426 class ZYPP_API MediaNotEjectedException: public MediaException
427 {
428 public:
429 MediaNotEjectedException()
430 : MediaException("Can't eject any media")
431 , _name("")
432 {}
433
434 MediaNotEjectedException(std::string name)
435 : MediaException("Can't eject media")
436 , _name(std::move(name))
437 {}
438 ~MediaNotEjectedException() noexcept override {}
439 protected:
440 std::ostream & dumpOn( std::ostream & str ) const override;
441 private:
442 std::string _name;
443 };
444
445 class ZYPP_API MediaUnauthorizedException: public MediaException
446 {
447 public:
448 MediaUnauthorizedException()
449 : MediaException("Unauthorized media access")
450 , _url("")
451 , _err("")
452 , _hint("")
453 {}
454
455 MediaUnauthorizedException(Url url_r,
456 const std::string &msg_r,
457 std::string err_r,
458 std::string hint_r)
459 : MediaException(msg_r)
460 , _url(std::move(url_r))
461 , _err(std::move(err_r))
462 , _hint(std::move(hint_r))
463 {}
464
465 ~MediaUnauthorizedException() noexcept override {}
466
467 const Url & url() const { return _url; }
468 const std::string & err() const { return _err; }
470 const std::string & hint() const { return _hint; }
471
472 protected:
473 std::ostream & dumpOn( std::ostream & str ) const override;
474 private:
475 Url _url;
476 std::string _err;
477 std::string _hint;
478 };
479
480 class ZYPP_API MediaForbiddenException : public MediaException
481 {
482 public:
483 MediaForbiddenException(const Url & url_r, const std::string & msg = "")
484 : MediaException(msg)
485 , _url(url_r.asString()), _msg(msg)
486 {}
487 ~MediaForbiddenException() noexcept override {}
488 protected:
489 std::ostream & dumpOn( std::ostream & str ) const override;
490 std::string _url;
491 std::string _msg;
492 };
493
494 class ZYPP_API MediaTimeoutException : public MediaException
495 {
496 public:
497 MediaTimeoutException(const Url & url_r, const std::string & msg = "")
498 : MediaException(msg)
499 , _url(url_r.asString()), _msg(msg)
500 {}
501 ~MediaTimeoutException() noexcept override {}
502 protected:
503 std::ostream & dumpOn( std::ostream & str ) const override;
504 std::string _url;
505 std::string _msg;
506 };
507
508 class ZYPP_API MediaFileSizeExceededException : public MediaException
509 {
510 public:
511 MediaFileSizeExceededException(const Url & url_r, const ByteCount &cnt_r, const std::string & msg = "")
512 : MediaException(msg)
513 , _url(url_r.asString())
514 , _msg(msg)
515 , _expectedFileSize(cnt_r)
516 {}
517 ~MediaFileSizeExceededException() noexcept override {}
518 protected:
519 std::ostream & dumpOn( std::ostream & str ) const override;
520 std::string _url;
521 std::string _msg;
522 ByteCount _expectedFileSize;
523 };
524
526 class ZYPP_API MediaTemporaryProblemException : public MediaException
527 {
528 public:
529 MediaTemporaryProblemException(const Url & url_r, const std::string & msg = "")
530 : MediaException(msg)
531 , _url(url_r.asString()), _msg(msg)
532 {}
533 ~MediaTemporaryProblemException() noexcept override {}
534 protected:
535 std::ostream & dumpOn( std::ostream & str ) const override;
536 std::string _url;
537 std::string _msg;
538 };
539
540 class ZYPP_API MediaBadCAException : public MediaException
541 {
542 public:
543 MediaBadCAException(const Url & url_r, const std::string & msg = "")
544 : MediaException(msg)
545 , _url(url_r.asString()), _msg(msg)
546 {}
547 ~MediaBadCAException() noexcept override {}
548 protected:
549 std::ostream & dumpOn( std::ostream & str ) const override;
550 std::string _url;
551 std::string _msg;
552 };
553
554 class ZYPP_API MediaInvalidCredentialsException : public MediaException
555 {
556 public:
557 MediaInvalidCredentialsException( const std::string & msg = "" )
558 : MediaException(msg)
559 {}
560 ~MediaInvalidCredentialsException() noexcept override {}
561 };
562
563 class ZYPP_API MediaRequestCancelledException : public MediaException
564 {
565 public:
566 MediaRequestCancelledException( const std::string & msg = "" )
567 : MediaException(msg)
568 {}
569 ~MediaRequestCancelledException() noexcept override {}
570 };
571
573 } // namespace media
574} // namespace zypp
576#endif // ZYPP_MEDIA_MEDIAEXCEPTION_H
zypp::ByteCount
Store and operate with byte count.
Definition ByteCount.h:32
zypp::Exception::asString
std::string asString() const
Error message provided by dumpOn as string.
Definition Exception.cc:111
zypp::Exception::Exception
Exception()
Default ctor.
Definition Exception.cc:81
zypp::Exception::msg
const std::string & msg() const
Return the message string provided to the ctor.
Definition Exception.h:196
zypp::Url
Url manipulation class.
Definition Url.h:93
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:47
zypp::media::MediaBadAttachPointException::MediaBadAttachPointException
MediaBadAttachPointException(const Url &url_r)
Definition mediaexception.h:211
zypp::media::MediaBadAttachPointException::_url
std::string _url
Definition mediaexception.h:219
zypp::media::MediaBadAttachPointException::~MediaBadAttachPointException
~MediaBadAttachPointException() noexcept override
Definition mediaexception.h:215
zypp::media::MediaBadCAException::MediaBadCAException
MediaBadCAException(const Url &url_r, const std::string &msg="")
Definition mediaexception.h:543
zypp::media::MediaBadCAException::_url
std::string _url
Definition mediaexception.h:550
zypp::media::MediaBadCAException::_msg
std::string _msg
Definition mediaexception.h:551
zypp::media::MediaBadCAException::~MediaBadCAException
~MediaBadCAException() noexcept override
Definition mediaexception.h:547
zypp::media::MediaBadFilenameException::~MediaBadFilenameException
~MediaBadFilenameException() noexcept override
Definition mediaexception.h:141
zypp::media::MediaBadFilenameException::_filename
std::string _filename
Definition mediaexception.h:146
zypp::media::MediaBadFilenameException::filename
std::string filename() const
Definition mediaexception.h:142
zypp::media::MediaBadFilenameException::MediaBadFilenameException
MediaBadFilenameException(std::string filename_r)
Definition mediaexception.h:137
zypp::media::MediaBadUrlEmptyDestinationException::~MediaBadUrlEmptyDestinationException
~MediaBadUrlEmptyDestinationException() noexcept override
Definition mediaexception.h:331
zypp::media::MediaBadUrlEmptyDestinationException::MediaBadUrlEmptyDestinationException
MediaBadUrlEmptyDestinationException(const Url &url_r)
Definition mediaexception.h:328
zypp::media::MediaBadUrlEmptyFilesystemException::MediaBadUrlEmptyFilesystemException
MediaBadUrlEmptyFilesystemException(const Url &url_r)
Definition mediaexception.h:317
zypp::media::MediaBadUrlEmptyFilesystemException::~MediaBadUrlEmptyFilesystemException
~MediaBadUrlEmptyFilesystemException() noexcept override
Definition mediaexception.h:320
zypp::media::MediaBadUrlEmptyHostException::MediaBadUrlEmptyHostException
MediaBadUrlEmptyHostException(const Url &url_r)
Definition mediaexception.h:306
zypp::media::MediaBadUrlEmptyHostException::~MediaBadUrlEmptyHostException
~MediaBadUrlEmptyHostException() noexcept override
Definition mediaexception.h:309
zypp::media::MediaBadUrlException::~MediaBadUrlException
~MediaBadUrlException() noexcept override
Definition mediaexception.h:296
zypp::media::MediaBadUrlException::_url
std::string _url
Definition mediaexception.h:299
zypp::media::MediaBadUrlException::MediaBadUrlException
MediaBadUrlException(const Url &url_r, std::string msg_r=std::string())
Definition mediaexception.h:290
zypp::media::MediaBadUrlException::_msg
std::string _msg
Definition mediaexception.h:300
zypp::media::MediaCurlException::_url
std::string _url
Definition mediaexception.h:375
zypp::media::MediaCurlException::errstr
std::string errstr() const
Definition mediaexception.h:372
zypp::media::MediaCurlException::MediaCurlException
MediaCurlException(const Url &url_r, std::string err_r, std::string msg_r)
Definition mediaexception.h:363
zypp::media::MediaCurlException::_err
std::string _err
Definition mediaexception.h:376
zypp::media::MediaCurlException::_msg
std::string _msg
Definition mediaexception.h:377
zypp::media::MediaCurlException::~MediaCurlException
~MediaCurlException() noexcept override
Definition mediaexception.h:371
zypp::media::MediaCurlInitException::_url
std::string _url
Definition mediaexception.h:233
zypp::media::MediaCurlInitException::~MediaCurlInitException
~MediaCurlInitException() noexcept override
Definition mediaexception.h:229
zypp::media::MediaCurlInitException::MediaCurlInitException
MediaCurlInitException(const Url &url_r)
Definition mediaexception.h:225
zypp::media::MediaCurlSetOptException::_msg
std::string _msg
Definition mediaexception.h:392
zypp::media::MediaCurlSetOptException::_url
std::string _url
Definition mediaexception.h:391
zypp::media::MediaCurlSetOptException::MediaCurlSetOptException
MediaCurlSetOptException(const Url &url_r, std::string msg_r)
Definition mediaexception.h:383
zypp::media::MediaCurlSetOptException::~MediaCurlSetOptException
~MediaCurlSetOptException() noexcept override
Definition mediaexception.h:388
zypp::media::MediaException
Just inherits Exception to separate media exceptions.
Definition mediaexception.h:37
zypp::media::MediaException::MediaException
MediaException(const std::string &msg_r)
Ctor taking message.
Definition mediaexception.h:47
zypp::media::MediaException::MediaException
MediaException()
Ctor taking message.
Definition mediaexception.h:42
zypp::media::MediaFileNotFoundException::_filename
std::string _filename
Definition mediaexception.h:177
zypp::media::MediaFileNotFoundException::MediaFileNotFoundException
MediaFileNotFoundException(const Url &url_r, const Pathname &filename_r)
Definition mediaexception.h:166
zypp::media::MediaFileNotFoundException::~MediaFileNotFoundException
~MediaFileNotFoundException() noexcept override
Definition mediaexception.h:172
zypp::media::MediaFileNotFoundException::_url
std::string _url
Definition mediaexception.h:176
zypp::media::MediaFileSizeExceededException::_url
std::string _url
Definition mediaexception.h:520
zypp::media::MediaFileSizeExceededException::_msg
std::string _msg
Definition mediaexception.h:521
zypp::media::MediaFileSizeExceededException::_expectedFileSize
ByteCount _expectedFileSize
Definition mediaexception.h:522
zypp::media::MediaFileSizeExceededException::~MediaFileSizeExceededException
~MediaFileSizeExceededException() noexcept override
Definition mediaexception.h:517
zypp::media::MediaFileSizeExceededException::MediaFileSizeExceededException
MediaFileSizeExceededException(const Url &url_r, const ByteCount &cnt_r, const std::string &msg="")
Definition mediaexception.h:511
zypp::media::MediaForbiddenException::_msg
std::string _msg
Definition mediaexception.h:491
zypp::media::MediaForbiddenException::MediaForbiddenException
MediaForbiddenException(const Url &url_r, const std::string &msg="")
Definition mediaexception.h:483
zypp::media::MediaForbiddenException::~MediaForbiddenException
~MediaForbiddenException() noexcept override
Definition mediaexception.h:487
zypp::media::MediaForbiddenException::_url
std::string _url
Definition mediaexception.h:490
zypp::media::MediaInvalidCredentialsException::~MediaInvalidCredentialsException
~MediaInvalidCredentialsException() noexcept override
Definition mediaexception.h:560
zypp::media::MediaInvalidCredentialsException::MediaInvalidCredentialsException
MediaInvalidCredentialsException(const std::string &msg="")
Definition mediaexception.h:557
zypp::media::MediaIsSharedException::MediaIsSharedException
MediaIsSharedException(std::string name)
Definition mediaexception.h:415
zypp::media::MediaIsSharedException::~MediaIsSharedException
~MediaIsSharedException() noexcept override
Definition mediaexception.h:419
zypp::media::MediaIsSharedException::_name
std::string _name
Definition mediaexception.h:423
zypp::media::MediaJammedException::MediaJammedException
MediaJammedException()
Ctor taking message.
Definition mediaexception.h:123
zypp::media::MediaJammedException::~MediaJammedException
~MediaJammedException() noexcept override
Dtor.
Definition mediaexception.h:127
zypp::media::MediaMountException::MediaMountException
MediaMountException(std::string error_r, std::string source_r, std::string target_r, std::string cmdout_r="")
Ctor taking message.
Definition mediaexception.h:65
zypp::media::MediaMountException::_source
std::string _source
Definition mediaexception.h:91
zypp::media::MediaMountException::mountError
const std::string & mountError() const
Definition mediaexception.h:78
zypp::media::MediaMountException::_cmdout
std::string _cmdout
Definition mediaexception.h:93
zypp::media::MediaMountException::mountSource
const std::string & mountSource() const
Definition mediaexception.h:80
zypp::media::MediaMountException::_error
std::string _error
Definition mediaexception.h:90
zypp::media::MediaMountException::mountTarget
const std::string & mountTarget() const
Definition mediaexception.h:82
zypp::media::MediaMountException::MediaMountException
MediaMountException()
Definition mediaexception.h:58
zypp::media::MediaMountException::_target
std::string _target
Definition mediaexception.h:92
zypp::media::MediaMountException::mountOutput
const std::string & mountOutput() const
Definition mediaexception.h:84
zypp::media::MediaMountException::~MediaMountException
~MediaMountException() noexcept override
Dtor.
Definition mediaexception.h:76
zypp::media::MediaNotADirException::~MediaNotADirException
~MediaNotADirException() noexcept override
Definition mediaexception.h:279
zypp::media::MediaNotADirException::MediaNotADirException
MediaNotADirException(const Url &url_r, const Pathname &path_r)
Definition mediaexception.h:273
zypp::media::MediaNotADirException::_path
std::string _path
Definition mediaexception.h:284
zypp::media::MediaNotADirException::_url
std::string _url
Definition mediaexception.h:283
zypp::media::MediaNotAFileException::MediaNotAFileException
MediaNotAFileException(const Url &url_r, const Pathname &path_r)
Definition mediaexception.h:256
zypp::media::MediaNotAFileException::~MediaNotAFileException
~MediaNotAFileException() noexcept override
Definition mediaexception.h:262
zypp::media::MediaNotAFileException::_path
std::string _path
Definition mediaexception.h:267
zypp::media::MediaNotAFileException::_url
std::string _url
Definition mediaexception.h:266
zypp::media::MediaNotAttachedException::MediaNotAttachedException
MediaNotAttachedException(const Url &url_r)
Definition mediaexception.h:197
zypp::media::MediaNotAttachedException::~MediaNotAttachedException
~MediaNotAttachedException() noexcept override
Definition mediaexception.h:201
zypp::media::MediaNotAttachedException::_url
std::string _url
Definition mediaexception.h:205
zypp::media::MediaNotDesiredException::~MediaNotDesiredException
~MediaNotDesiredException() noexcept override
Definition mediaexception.h:402
zypp::media::MediaNotDesiredException::MediaNotDesiredException
MediaNotDesiredException(const Url &url_r)
Definition mediaexception.h:398
zypp::media::MediaNotDesiredException::_url
std::string _url
Definition mediaexception.h:406
zypp::media::MediaNotEjectedException::~MediaNotEjectedException
~MediaNotEjectedException() noexcept override
Definition mediaexception.h:438
zypp::media::MediaNotEjectedException::_name
std::string _name
Definition mediaexception.h:442
zypp::media::MediaNotEjectedException::MediaNotEjectedException
MediaNotEjectedException(std::string name)
Definition mediaexception.h:434
zypp::media::MediaNotEjectedException::MediaNotEjectedException
MediaNotEjectedException()
Definition mediaexception.h:429
zypp::media::MediaNotOpenException::~MediaNotOpenException
~MediaNotOpenException() noexcept override
Definition mediaexception.h:156
zypp::media::MediaNotOpenException::_action
std::string _action
Definition mediaexception.h:160
zypp::media::MediaNotOpenException::MediaNotOpenException
MediaNotOpenException(std::string action_r)
Definition mediaexception.h:152
zypp::media::MediaNotSupportedException::~MediaNotSupportedException
~MediaNotSupportedException() noexcept override
Definition mediaexception.h:354
zypp::media::MediaNotSupportedException::MediaNotSupportedException
MediaNotSupportedException(const Url &url_r)
Definition mediaexception.h:350
zypp::media::MediaNotSupportedException::_url
std::string _url
Definition mediaexception.h:357
zypp::media::MediaRequestCancelledException::~MediaRequestCancelledException
~MediaRequestCancelledException() noexcept override
Definition mediaexception.h:569
zypp::media::MediaRequestCancelledException::MediaRequestCancelledException
MediaRequestCancelledException(const std::string &msg="")
Definition mediaexception.h:566
zypp::media::MediaSystemException::MediaSystemException
MediaSystemException(const Url &url_r, std::string message_r)
Definition mediaexception.h:239
zypp::media::MediaSystemException::_url
std::string _url
Definition mediaexception.h:249
zypp::media::MediaSystemException::~MediaSystemException
~MediaSystemException() noexcept override
Definition mediaexception.h:245
zypp::media::MediaSystemException::_message
std::string _message
Definition mediaexception.h:250
zypp::media::MediaTemporaryProblemException::_url
std::string _url
Definition mediaexception.h:536
zypp::media::MediaTemporaryProblemException::MediaTemporaryProblemException
MediaTemporaryProblemException(const Url &url_r, const std::string &msg="")
Definition mediaexception.h:529
zypp::media::MediaTemporaryProblemException::~MediaTemporaryProblemException
~MediaTemporaryProblemException() noexcept override
Definition mediaexception.h:533
zypp::media::MediaTemporaryProblemException::_msg
std::string _msg
Definition mediaexception.h:537
zypp::media::MediaTimeoutException::_url
std::string _url
Definition mediaexception.h:504
zypp::media::MediaTimeoutException::~MediaTimeoutException
~MediaTimeoutException() noexcept override
Definition mediaexception.h:501
zypp::media::MediaTimeoutException::_msg
std::string _msg
Definition mediaexception.h:505
zypp::media::MediaTimeoutException::MediaTimeoutException
MediaTimeoutException(const Url &url_r, const std::string &msg="")
Definition mediaexception.h:497
zypp::media::MediaUnauthorizedException::err
const std::string & err() const
Definition mediaexception.h:468
zypp::media::MediaUnauthorizedException::MediaUnauthorizedException
MediaUnauthorizedException(Url url_r, const std::string &msg_r, std::string err_r, std::string hint_r)
Definition mediaexception.h:455
zypp::media::MediaUnauthorizedException::~MediaUnauthorizedException
~MediaUnauthorizedException() noexcept override
Definition mediaexception.h:465
zypp::media::MediaUnauthorizedException::_err
std::string _err
Definition mediaexception.h:476
zypp::media::MediaUnauthorizedException::hint
const std::string & hint() const
comma separated list of available authentication types
Definition mediaexception.h:470
zypp::media::MediaUnauthorizedException::MediaUnauthorizedException
MediaUnauthorizedException()
Definition mediaexception.h:448
zypp::media::MediaUnauthorizedException::_hint
std::string _hint
Definition mediaexception.h:477
zypp::media::MediaUnauthorizedException::url
const Url & url() const
Definition mediaexception.h:467
zypp::media::MediaUnauthorizedException::_url
Url _url
Definition mediaexception.h:475
zypp::media::MediaUnmountException::_path
std::string _path
Definition mediaexception.h:114
zypp::media::MediaUnmountException::~MediaUnmountException
~MediaUnmountException() noexcept override
Dtor.
Definition mediaexception.h:109
zypp::media::MediaUnmountException::MediaUnmountException
MediaUnmountException(std::string error_r, std::string path_r)
Ctor taking message.
Definition mediaexception.h:102
zypp::media::MediaUnmountException::_error
std::string _error
Definition mediaexception.h:113
zypp::media::MediaUnsupportedUrlSchemeException::~MediaUnsupportedUrlSchemeException
~MediaUnsupportedUrlSchemeException() noexcept override
Definition mediaexception.h:342
zypp::media::MediaUnsupportedUrlSchemeException::MediaUnsupportedUrlSchemeException
MediaUnsupportedUrlSchemeException(const Url &url_r)
Definition mediaexception.h:339
zypp::media::MediaWriteException::~MediaWriteException
~MediaWriteException() noexcept override
Definition mediaexception.h:187
zypp::media::MediaWriteException::_filename
std::string _filename
Definition mediaexception.h:191
zypp::media::MediaWriteException::MediaWriteException
MediaWriteException(const Pathname &filename_r)
Definition mediaexception.h:183
std
Definition Arch.h:364
str
String related utilities and Regular expression matching.
zypp::media
Definition MediaCD.cc:47
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
zypp::dumpOn
std::ostream & dumpOn(std::ostream &str, const Capability &obj)
Definition Capability.cc:580
zypp::ZYPP_API
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition Arch.h:247
ByteCount.h
Pathname.h
Url.h
Exception.h