12#ifndef ZYPP_MEDIA_MEDIAEXCEPTION_H
13#define ZYPP_MEDIA_MEDIAEXCEPTION_H
20#include <zypp-core/base/Exception.h>
21#include <zypp-core/Pathname.h>
22#include <zypp-core/Url.h>
23#include <zypp-core/ByteCount.h>
65 const std::string & source_r,
66 const std::string & target_r,
67 const std::string & cmdout_r=
"")
87 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
102 const std::string & path_r )
110 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
128 std::ostream &
dumpOn( std::ostream &
str )
const override;
138 , _filename(filename_r)
143 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
157 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
168 , _url(url_r.asString())
169 , _filename(filename_r.asString())
173 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
184 , _filename(filename_r.asString())
188 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
198 , _url(url_r.asString())
202 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
212 , _url(url_r.asString())
216 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
226 , _url(url_r.asString())
230 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
239 const std::string & message_r)
241 , _url(url_r.asString())
242 , _message(message_r)
246 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
258 , _url(url_r.asString())
259 , _path(path_r.asString())
263 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
275 , _url(url_r.asString())
276 , _path(path_r.asString())
280 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
290 const std::string &msg_r = std::string())
292 , _url(url_r.asString())
297 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
310 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
321 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
332 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
343 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
351 , _url(url_r.asString())
355 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
363 const std::string & err_r,
364 const std::string & msg_r)
366 , _url(url_r.asString())
373 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
384 , _url(url_r.asString())
389 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
399 , _url(url_r.asString())
403 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
420 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
439 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
455 const std::string &msg_r,
456 const std::string &err_r,
457 const std::string &hint_r)
467 const std::string &
err()
const {
return _err; }
469 const std::string &
hint()
const {
return _hint; }
472 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
484 , _url(url_r.asString()), _msg(msg)
488 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
498 , _url(url_r.asString()), _msg(msg)
502 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
512 , _url(url_r.asString())
514 , _expectedFileSize(cnt_r)
518 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
530 , _url(url_r.asString()), _msg(msg)
534 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
544 , _url(url_r.asString()), _msg(msg)
548 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
Store and operate with byte count.
Base class for Exception.
virtual std::ostream & dumpOn(std::ostream &str) const
Overload this to print a proper error message.
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & dumpOn(std::ostream &str, const Capability &obj)