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