zypp::media::MediaNoLoopDeviceException Class Reference

Thrown if /sbin/losetup fails to find an unused loop device for mounting an .iso image. More...

#include <MediaException.h>

Inheritance diagram for zypp::media::MediaNoLoopDeviceException:
[legend]

List of all members.

Public Member Functions

 MediaNoLoopDeviceException (const Url &url_r, const std::string &msg="")
virtual ~MediaNoLoopDeviceException () throw ()

Protected Member Functions

virtual std::ostream & dumpOn (std::ostream &str) const
 Overload this to print a proper error message.

Protected Attributes

std::string _url
std::string _msg


Detailed Description

Thrown if /sbin/losetup fails to find an unused loop device for mounting an .iso image.

UI hint: tell user to check permissions to read /dev/loop# or enablement of support for loop devices.

See also:
MediaISO

Definition at line 622 of file MediaException.h.


Constructor & Destructor Documentation

zypp::media::MediaNoLoopDeviceException::MediaNoLoopDeviceException ( const Url url_r,
const std::string &  msg = "" 
) [inline]

Definition at line 625 of file MediaException.h.

virtual zypp::media::MediaNoLoopDeviceException::~MediaNoLoopDeviceException (  )  throw () [inline, virtual]

Definition at line 629 of file MediaException.h.


Member Function Documentation

std::ostream & zypp::media::MediaNoLoopDeviceException::dumpOn ( std::ostream &  str  )  const [protected, virtual]

Overload this to print a proper error message.

Reimplemented from zypp::Exception.

Definition at line 281 of file MediaException.cc.

References _, _msg, _url, and zypp::str::form().


Member Data Documentation

Definition at line 632 of file MediaException.h.

Referenced by dumpOn().

Reimplemented from zypp::Exception.

Definition at line 633 of file MediaException.h.

Referenced by dumpOn().


The documentation for this class was generated from the following files:

doxygen