libzypp: zypp-media/mediaexception.h Source File

libzypp 17.38.8

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 : MediaException()
168 , _url(url_r.asString())
169 {}
170 MediaFileNotFoundException(const Url & url_r,
171 const Pathname & filename_r)
172 : MediaException()
173 , _url(url_r.asString())
174 , _filename(filename_r.asString())
175 {}
176 ~MediaFileNotFoundException() noexcept override {}
177 protected:
178 std::ostream & dumpOn( std::ostream & str ) const override;
179 private:
180 std::string _url;
181 std::string _filename;
182 };
183
184 class ZYPP_API MediaWriteException : public MediaException
185 {
186 public:
187 MediaWriteException(const Pathname & filename_r)
188 : MediaException()
189 , _filename(filename_r.asString())
190 {}
191 ~MediaWriteException() noexcept override {}
192 protected:
193 std::ostream & dumpOn( std::ostream & str ) const override;
194 private:
195 std::string _filename;
196 };
197
198 class ZYPP_API MediaNotAttachedException : public MediaException
199 {
200 public:
201 MediaNotAttachedException(const Url & url_r)
202 : MediaException()
203 , _url(url_r.asString())
204 {}
205 ~MediaNotAttachedException() noexcept override {}
206 protected:
207 std::ostream & dumpOn( std::ostream & str ) const override;
208 private:
209 std::string _url;
210 };
211
212 class ZYPP_API MediaBadAttachPointException : public MediaException
213 {
214 public:
215 MediaBadAttachPointException(const Url & url_r)
216 : MediaException()
217 , _url(url_r.asString())
218 {}
219 ~MediaBadAttachPointException() noexcept override {}
220 protected:
221 std::ostream & dumpOn( std::ostream & str ) const override;
222 private:
223 std::string _url;
224 };
225
226 class ZYPP_API MediaCurlInitException : public MediaException
227 {
228 public:
229 MediaCurlInitException(const Url & url_r)
230 : MediaException()
231 , _url(url_r.asString())
232 {}
233 ~MediaCurlInitException() noexcept override {}
234 protected:
235 std::ostream & dumpOn( std::ostream & str ) const override;
236 private:
237 std::string _url;
238 };
239
240 class ZYPP_API MediaSystemException : public MediaException
241 {
242 public:
243 MediaSystemException(const Url & url_r,
244 std::string message_r)
245 : MediaException()
246 , _url(url_r.asString())
247 , _message(std::move(message_r))
248 {}
249 ~MediaSystemException() noexcept override {}
250 protected:
251 std::ostream & dumpOn( std::ostream & str ) const override;
252 private:
253 std::string _url;
254 std::string _message;
255 };
256
257 class ZYPP_API MediaNotAFileException : public MediaException
258 {
259 public:
260 MediaNotAFileException(const Url & url_r,
261 const Pathname & path_r)
262 : MediaException()
263 , _url(url_r.asString())
264 , _path(path_r.asString())
265 {}
266 ~MediaNotAFileException() noexcept override {}
267 protected:
268 std::ostream & dumpOn( std::ostream & str ) const override;
269 private:
270 std::string _url;
271 std::string _path;
272 };
273
274 class ZYPP_API MediaNotADirException : public MediaException
275 {
276 public:
277 MediaNotADirException(const Url & url_r,
278 const Pathname & path_r)
279 : MediaException()
280 , _url(url_r.asString())
281 , _path(path_r.asString())
282 {}
283 ~MediaNotADirException() noexcept override {}
284 protected:
285 std::ostream & dumpOn( std::ostream & str ) const override;
286 private:
287 std::string _url;
288 std::string _path;
289 };
290
291 class ZYPP_API MediaBadUrlException : public MediaException
292 {
293 public:
294 MediaBadUrlException(const Url & url_r,
295 std::string msg_r = std::string())
296 : MediaException()
297 , _url(url_r.asString())
298 , _msg(std::move(msg_r))
299 {}
300 ~MediaBadUrlException() noexcept override {}
301 protected:
302 std::ostream & dumpOn( std::ostream & str ) const override;
303 std::string _url;
304 std::string _msg;
305 };
306
307 class ZYPP_API MediaBadUrlEmptyHostException : public MediaBadUrlException
308 {
309 public:
310 MediaBadUrlEmptyHostException(const Url & url_r)
311 : MediaBadUrlException(url_r)
312 {}
313 ~MediaBadUrlEmptyHostException() noexcept override {}
314 protected:
315 std::ostream & dumpOn( std::ostream & str ) const override;
316 };
317
318 class ZYPP_API MediaBadUrlEmptyFilesystemException : public MediaBadUrlException
319 {
320 public:
321 MediaBadUrlEmptyFilesystemException(const Url & url_r)
322 : MediaBadUrlException(url_r)
323 {}
324 ~MediaBadUrlEmptyFilesystemException() noexcept override {}
325 protected:
326 std::ostream & dumpOn( std::ostream & str ) const override;
327 };
328
329 class ZYPP_API MediaBadUrlEmptyDestinationException : public MediaBadUrlException
330 {
331 public:
332 MediaBadUrlEmptyDestinationException(const Url & url_r)
333 : MediaBadUrlException(url_r)
334 {}
335 ~MediaBadUrlEmptyDestinationException() noexcept override {}
336 protected:
337 std::ostream & dumpOn( std::ostream & str ) const override;
338 };
339
340 class ZYPP_API MediaUnsupportedUrlSchemeException : public MediaBadUrlException
341 {
342 public:
343 MediaUnsupportedUrlSchemeException(const Url & url_r)
344 : MediaBadUrlException(url_r)
345 {}
346 ~MediaUnsupportedUrlSchemeException() noexcept override {}
347 protected:
348 std::ostream & dumpOn( std::ostream & str ) const override;
349 };
350
351 class ZYPP_API MediaNotSupportedException : public MediaException
352 {
353 public:
354 MediaNotSupportedException(const Url & url_r)
355 : MediaException()
356 , _url(url_r.asString())
357 {}
358 ~MediaNotSupportedException() noexcept override {}
359 protected:
360 std::ostream & dumpOn( std::ostream & str ) const override;
361 std::string _url;
362 };
363
364 class ZYPP_API MediaCurlException : public MediaException
365 {
366 public:
367 MediaCurlException(const Url & url_r,
368 std::string err_r,
369 std::string msg_r)
370 : MediaException()
371 , _url(url_r.asString())
372 , _err(std::move(err_r))
373 , _msg(std::move(msg_r))
374 {}
375 ~MediaCurlException() noexcept override {}
376 std::string errstr() const { return _err; }
377 protected:
378 std::ostream & dumpOn( std::ostream & str ) const override;
379 std::string _url;
380 std::string _err;
381 std::string _msg;
382 };
383
384 class ZYPP_API MediaCurlSetOptException : public MediaException
385 {
386 public:
387 MediaCurlSetOptException(const Url & url_r, std::string msg_r)
388 : MediaException()
389 , _url(url_r.asString())
390 , _msg(std::move(msg_r))
391 {}
392 ~MediaCurlSetOptException() noexcept override {}
393 protected:
394 std::ostream & dumpOn( std::ostream & str ) const override;
395 std::string _url;
396 std::string _msg;
397 };
398
399 class ZYPP_API MediaNotDesiredException : public MediaException
400 {
401 public:
402 MediaNotDesiredException(const Url & url_r)
403 : MediaException()
404 , _url(url_r.asString())
405 {}
406 ~MediaNotDesiredException() noexcept override {}
407 protected:
408 std::ostream & dumpOn( std::ostream & str ) const override;
409 private:
410 std::string _url;
411 };
412
413 class ZYPP_API MediaIsSharedException : public MediaException
414 {
415 public:
419 MediaIsSharedException(std::string name)
420 : MediaException()
421 , _name(std::move(name))
422 {}
423 ~MediaIsSharedException() noexcept override {}
424 protected:
425 std::ostream & dumpOn( std::ostream & str ) const override;
426 private:
427 std::string _name;
428 };
429
430 class ZYPP_API MediaNotEjectedException: public MediaException
431 {
432 public:
433 MediaNotEjectedException()
434 : MediaException("Can't eject any media")
435 , _name("")
436 {}
437
438 MediaNotEjectedException(std::string name)
439 : MediaException("Can't eject media")
440 , _name(std::move(name))
441 {}
442 ~MediaNotEjectedException() noexcept override {}
443 protected:
444 std::ostream & dumpOn( std::ostream & str ) const override;
445 private:
446 std::string _name;
447 };
448
449 class ZYPP_API MediaUnauthorizedException: public MediaException
450 {
451 public:
452 MediaUnauthorizedException()
453 : MediaException("Unauthorized media access")
454 , _url("")
455 , _err("")
456 , _hint("")
457 {}
458
459 MediaUnauthorizedException(Url url_r,
460 const std::string &msg_r,
461 std::string err_r,
462 std::string hint_r)
463 : MediaException(msg_r)
464 , _url(std::move(url_r))
465 , _err(std::move(err_r))
466 , _hint(std::move(hint_r))
467 {}
468
469 ~MediaUnauthorizedException() noexcept override {}
470
471 const Url & url() const { return _url; }
472 const std::string & err() const { return _err; }
474 const std::string & hint() const { return _hint; }
475
476 protected:
477 std::ostream & dumpOn( std::ostream & str ) const override;
478 private:
479 Url _url;
480 std::string _err;
481 std::string _hint;
482 };
483
484 class ZYPP_API MediaForbiddenException : public MediaException
485 {
486 public:
487 MediaForbiddenException(const Url & url_r, const std::string & msg = "")
488 : MediaException(msg)
489 , _url(url_r.asString()), _msg(msg)
490 {}
491 ~MediaForbiddenException() noexcept override {}
492 protected:
493 std::ostream & dumpOn( std::ostream & str ) const override;
494 std::string _url;
495 std::string _msg;
496 };
497
498 class ZYPP_API MediaTimeoutException : public MediaException
499 {
500 public:
501 MediaTimeoutException(const Url & url_r, const std::string & msg = "")
502 : MediaException(msg)
503 , _url(url_r.asString()), _msg(msg)
504 {}
505 ~MediaTimeoutException() noexcept override {}
506 protected:
507 std::ostream & dumpOn( std::ostream & str ) const override;
508 std::string _url;
509 std::string _msg;
510 };
511
512 class ZYPP_API MediaFileSizeExceededException : public MediaException
513 {
514 public:
515 MediaFileSizeExceededException(const Url & url_r, const ByteCount &cnt_r, const std::string & msg = "")
516 : MediaException(msg)
517 , _url(url_r.asString())
518 , _msg(msg)
519 , _expectedFileSize(cnt_r)
520 {}
521 ~MediaFileSizeExceededException() noexcept override {}
522 protected:
523 std::ostream & dumpOn( std::ostream & str ) const override;
524 std::string _url;
525 std::string _msg;
526 ByteCount _expectedFileSize;
527 };
528
530 class ZYPP_API MediaTemporaryProblemException : public MediaException
531 {
532 public:
533 MediaTemporaryProblemException(const Url & url_r, const std::string & msg = "")
534 : MediaException(msg)
535 , _url(url_r.asString()), _msg(msg)
536 {}
537 ~MediaTemporaryProblemException() noexcept override {}
538 protected:
539 std::ostream & dumpOn( std::ostream & str ) const override;
540 std::string _url;
541 std::string _msg;
542 };
543
544 class ZYPP_API MediaBadCAException : public MediaException
545 {
546 public:
547 MediaBadCAException(const Url & url_r, const std::string & msg = "")
548 : MediaException(msg)
549 , _url(url_r.asString()), _msg(msg)
550 {}
551 ~MediaBadCAException() noexcept override {}
552 protected:
553 std::ostream & dumpOn( std::ostream & str ) const override;
554 std::string _url;
555 std::string _msg;
556 };
557
558 class ZYPP_API MediaInvalidCredentialsException : public MediaException
559 {
560 public:
561 MediaInvalidCredentialsException( const std::string & msg = "" )
562 : MediaException(msg)
563 {}
564 ~MediaInvalidCredentialsException() noexcept override {}
565 };
566
567 class ZYPP_API MediaRequestCancelledException : public MediaException
568 {
569 public:
570 MediaRequestCancelledException( const std::string & msg = "" )
571 : MediaException(msg)
572 {}
573 ~MediaRequestCancelledException() noexcept override {}
574 };
575
577 } // namespace media
578} // namespace zypp
580#endif // ZYPP_MEDIA_MEDIAEXCEPTION_H
ByteCount.h
Exception.h
Pathname.h
Url.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:124
zypp::Exception::Exception
Exception()
Default ctor.
Definition Exception.cc:94
zypp::Exception::msg
const std::string & msg() const
Return the message string provided to the ctor.
Definition Exception.h:206
zypp::Url
Url manipulation class.
Definition Url.h:93
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:48
zypp::media::MediaBadAttachPointException::MediaBadAttachPointException
MediaBadAttachPointException(const Url &url_r)
Definition mediaexception.h:215
zypp::media::MediaBadAttachPointException::_url
std::string _url
Definition mediaexception.h:223
zypp::media::MediaBadAttachPointException::~MediaBadAttachPointException
~MediaBadAttachPointException() noexcept override
Definition mediaexception.h:219
zypp::media::MediaBadCAException::MediaBadCAException
MediaBadCAException(const Url &url_r, const std::string &msg="")
Definition mediaexception.h:547
zypp::media::MediaBadCAException::_url
std::string _url
Definition mediaexception.h:554
zypp::media::MediaBadCAException::_msg
std::string _msg
Definition mediaexception.h:555
zypp::media::MediaBadCAException::~MediaBadCAException
~MediaBadCAException() noexcept override
Definition mediaexception.h:551
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:335
zypp::media::MediaBadUrlEmptyDestinationException::MediaBadUrlEmptyDestinationException
MediaBadUrlEmptyDestinationException(const Url &url_r)
Definition mediaexception.h:332
zypp::media::MediaBadUrlEmptyFilesystemException::MediaBadUrlEmptyFilesystemException
MediaBadUrlEmptyFilesystemException(const Url &url_r)
Definition mediaexception.h:321
zypp::media::MediaBadUrlEmptyFilesystemException::~MediaBadUrlEmptyFilesystemException
~MediaBadUrlEmptyFilesystemException() noexcept override
Definition mediaexception.h:324
zypp::media::MediaBadUrlEmptyHostException::MediaBadUrlEmptyHostException
MediaBadUrlEmptyHostException(const Url &url_r)
Definition mediaexception.h:310
zypp::media::MediaBadUrlEmptyHostException::~MediaBadUrlEmptyHostException
~MediaBadUrlEmptyHostException() noexcept override
Definition mediaexception.h:313
zypp::media::MediaBadUrlException::~MediaBadUrlException
~MediaBadUrlException() noexcept override
Definition mediaexception.h:300
zypp::media::MediaBadUrlException::_url
std::string _url
Definition mediaexception.h:303
zypp::media::MediaBadUrlException::MediaBadUrlException
MediaBadUrlException(const Url &url_r, std::string msg_r=std::string())
Definition mediaexception.h:294
zypp::media::MediaBadUrlException::_msg
std::string _msg
Definition mediaexception.h:304
zypp::media::MediaCurlException::_url
std::string _url
Definition mediaexception.h:379
zypp::media::MediaCurlException::errstr
std::string errstr() const
Definition mediaexception.h:376
zypp::media::MediaCurlException::MediaCurlException
MediaCurlException(const Url &url_r, std::string err_r, std::string msg_r)
Definition mediaexception.h:367
zypp::media::MediaCurlException::_err
std::string _err
Definition mediaexception.h:380
zypp::media::MediaCurlException::_msg
std::string _msg
Definition mediaexception.h:381
zypp::media::MediaCurlException::~MediaCurlException
~MediaCurlException() noexcept override
Definition mediaexception.h:375
zypp::media::MediaCurlInitException::_url
std::string _url
Definition mediaexception.h:237
zypp::media::MediaCurlInitException::~MediaCurlInitException
~MediaCurlInitException() noexcept override
Definition mediaexception.h:233
zypp::media::MediaCurlInitException::MediaCurlInitException
MediaCurlInitException(const Url &url_r)
Definition mediaexception.h:229
zypp::media::MediaCurlSetOptException::_msg
std::string _msg
Definition mediaexception.h:396
zypp::media::MediaCurlSetOptException::_url
std::string _url
Definition mediaexception.h:395
zypp::media::MediaCurlSetOptException::MediaCurlSetOptException
MediaCurlSetOptException(const Url &url_r, std::string msg_r)
Definition mediaexception.h:387
zypp::media::MediaCurlSetOptException::~MediaCurlSetOptException
~MediaCurlSetOptException() noexcept override
Definition mediaexception.h:392
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:181
zypp::media::MediaFileNotFoundException::MediaFileNotFoundException
MediaFileNotFoundException(const Url &url_r)
Definition mediaexception.h:166
zypp::media::MediaFileNotFoundException::MediaFileNotFoundException
MediaFileNotFoundException(const Url &url_r, const Pathname &filename_r)
Definition mediaexception.h:170
zypp::media::MediaFileNotFoundException::~MediaFileNotFoundException
~MediaFileNotFoundException() noexcept override
Definition mediaexception.h:176
zypp::media::MediaFileNotFoundException::_url
std::string _url
Definition mediaexception.h:180
zypp::media::MediaFileSizeExceededException::_url
std::string _url
Definition mediaexception.h:524
zypp::media::MediaFileSizeExceededException::_msg
std::string _msg
Definition mediaexception.h:525
zypp::media::MediaFileSizeExceededException::_expectedFileSize
ByteCount _expectedFileSize
Definition mediaexception.h:526
zypp::media::MediaFileSizeExceededException::~MediaFileSizeExceededException
~MediaFileSizeExceededException() noexcept override
Definition mediaexception.h:521
zypp::media::MediaFileSizeExceededException::MediaFileSizeExceededException
MediaFileSizeExceededException(const Url &url_r, const ByteCount &cnt_r, const std::string &msg="")
Definition mediaexception.h:515
zypp::media::MediaForbiddenException::_msg
std::string _msg
Definition mediaexception.h:495
zypp::media::MediaForbiddenException::MediaForbiddenException
MediaForbiddenException(const Url &url_r, const std::string &msg="")
Definition mediaexception.h:487
zypp::media::MediaForbiddenException::~MediaForbiddenException
~MediaForbiddenException() noexcept override
Definition mediaexception.h:491
zypp::media::MediaForbiddenException::_url
std::string _url
Definition mediaexception.h:494
zypp::media::MediaInvalidCredentialsException::~MediaInvalidCredentialsException
~MediaInvalidCredentialsException() noexcept override
Definition mediaexception.h:564
zypp::media::MediaInvalidCredentialsException::MediaInvalidCredentialsException
MediaInvalidCredentialsException(const std::string &msg="")
Definition mediaexception.h:561
zypp::media::MediaIsSharedException::MediaIsSharedException
MediaIsSharedException(std::string name)
Definition mediaexception.h:419
zypp::media::MediaIsSharedException::~MediaIsSharedException
~MediaIsSharedException() noexcept override
Definition mediaexception.h:423
zypp::media::MediaIsSharedException::_name
std::string _name
Definition mediaexception.h:427
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:283
zypp::media::MediaNotADirException::MediaNotADirException
MediaNotADirException(const Url &url_r, const Pathname &path_r)
Definition mediaexception.h:277
zypp::media::MediaNotADirException::_path
std::string _path
Definition mediaexception.h:288
zypp::media::MediaNotADirException::_url
std::string _url
Definition mediaexception.h:287
zypp::media::MediaNotAFileException::MediaNotAFileException
MediaNotAFileException(const Url &url_r, const Pathname &path_r)
Definition mediaexception.h:260
zypp::media::MediaNotAFileException::~MediaNotAFileException
~MediaNotAFileException() noexcept override
Definition mediaexception.h:266
zypp::media::MediaNotAFileException::_path
std::string _path
Definition mediaexception.h:271
zypp::media::MediaNotAFileException::_url
std::string _url
Definition mediaexception.h:270
zypp::media::MediaNotAttachedException::MediaNotAttachedException
MediaNotAttachedException(const Url &url_r)
Definition mediaexception.h:201
zypp::media::MediaNotAttachedException::~MediaNotAttachedException
~MediaNotAttachedException() noexcept override
Definition mediaexception.h:205
zypp::media::MediaNotAttachedException::_url
std::string _url
Definition mediaexception.h:209
zypp::media::MediaNotDesiredException::~MediaNotDesiredException
~MediaNotDesiredException() noexcept override
Definition mediaexception.h:406
zypp::media::MediaNotDesiredException::MediaNotDesiredException
MediaNotDesiredException(const Url &url_r)
Definition mediaexception.h:402
zypp::media::MediaNotDesiredException::_url
std::string _url
Definition mediaexception.h:410
zypp::media::MediaNotEjectedException::~MediaNotEjectedException
~MediaNotEjectedException() noexcept override
Definition mediaexception.h:442
zypp::media::MediaNotEjectedException::_name
std::string _name
Definition mediaexception.h:446
zypp::media::MediaNotEjectedException::MediaNotEjectedException
MediaNotEjectedException(std::string name)
Definition mediaexception.h:438
zypp::media::MediaNotEjectedException::MediaNotEjectedException
MediaNotEjectedException()
Definition mediaexception.h:433
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:358
zypp::media::MediaNotSupportedException::MediaNotSupportedException
MediaNotSupportedException(const Url &url_r)
Definition mediaexception.h:354
zypp::media::MediaNotSupportedException::_url
std::string _url
Definition mediaexception.h:361
zypp::media::MediaRequestCancelledException::~MediaRequestCancelledException
~MediaRequestCancelledException() noexcept override
Definition mediaexception.h:573
zypp::media::MediaRequestCancelledException::MediaRequestCancelledException
MediaRequestCancelledException(const std::string &msg="")
Definition mediaexception.h:570
zypp::media::MediaSystemException::MediaSystemException
MediaSystemException(const Url &url_r, std::string message_r)
Definition mediaexception.h:243
zypp::media::MediaSystemException::_url
std::string _url
Definition mediaexception.h:253
zypp::media::MediaSystemException::~MediaSystemException
~MediaSystemException() noexcept override
Definition mediaexception.h:249
zypp::media::MediaSystemException::_message
std::string _message
Definition mediaexception.h:254
zypp::media::MediaTemporaryProblemException::_url
std::string _url
Definition mediaexception.h:540
zypp::media::MediaTemporaryProblemException::MediaTemporaryProblemException
MediaTemporaryProblemException(const Url &url_r, const std::string &msg="")
Definition mediaexception.h:533
zypp::media::MediaTemporaryProblemException::~MediaTemporaryProblemException
~MediaTemporaryProblemException() noexcept override
Definition mediaexception.h:537
zypp::media::MediaTemporaryProblemException::_msg
std::string _msg
Definition mediaexception.h:541
zypp::media::MediaTimeoutException::_url
std::string _url
Definition mediaexception.h:508
zypp::media::MediaTimeoutException::~MediaTimeoutException
~MediaTimeoutException() noexcept override
Definition mediaexception.h:505
zypp::media::MediaTimeoutException::_msg
std::string _msg
Definition mediaexception.h:509
zypp::media::MediaTimeoutException::MediaTimeoutException
MediaTimeoutException(const Url &url_r, const std::string &msg="")
Definition mediaexception.h:501
zypp::media::MediaUnauthorizedException::err
const std::string & err() const
Definition mediaexception.h:472
zypp::media::MediaUnauthorizedException::MediaUnauthorizedException
MediaUnauthorizedException(Url url_r, const std::string &msg_r, std::string err_r, std::string hint_r)
Definition mediaexception.h:459
zypp::media::MediaUnauthorizedException::~MediaUnauthorizedException
~MediaUnauthorizedException() noexcept override
Definition mediaexception.h:469
zypp::media::MediaUnauthorizedException::_err
std::string _err
Definition mediaexception.h:480
zypp::media::MediaUnauthorizedException::hint
const std::string & hint() const
comma separated list of available authentication types
Definition mediaexception.h:474
zypp::media::MediaUnauthorizedException::MediaUnauthorizedException
MediaUnauthorizedException()
Definition mediaexception.h:452
zypp::media::MediaUnauthorizedException::_hint
std::string _hint
Definition mediaexception.h:481
zypp::media::MediaUnauthorizedException::url
const Url & url() const
Definition mediaexception.h:471
zypp::media::MediaUnauthorizedException::_url
Url _url
Definition mediaexception.h:479
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:346
zypp::media::MediaUnsupportedUrlSchemeException::MediaUnsupportedUrlSchemeException
MediaUnsupportedUrlSchemeException(const Url &url_r)
Definition mediaexception.h:343
zypp::media::MediaWriteException::~MediaWriteException
~MediaWriteException() noexcept override
Definition mediaexception.h:191
zypp::media::MediaWriteException::_filename
std::string _filename
Definition mediaexception.h:195
zypp::media::MediaWriteException::MediaWriteException
MediaWriteException(const Pathname &filename_r)
Definition mediaexception.h:187
std
Definition ansi.h:855
str
String related utilities and Regular expression matching.
zypp::media
Definition MediaNetworkRequestExecutor.h:22
zypp::media::dumpOn
std::ostream & dumpOn(std::ostream &str, const TransferSettings &obj)
relates: TransferSettings
Definition transfersettings.cc:337
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