1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/target/rpm/RpmException.cc
16 #include <zypp/target/rpm/RpmException.h>
18 ///////////////////////////////////////////////////////////////////
20 { /////////////////////////////////////////////////////////////////
23 /////////////////////////////////////////////////////////////////
26 /////////////////////////////////////////////////////////////////
28 std::ostream & RpmInvalidRootException::dumpOn( std::ostream & str ) const
30 return str << "Illegal root " << _root
31 << " or dbPath " << _dbpath;
34 std::ostream & RpmAccessBlockedException::dumpOn( std::ostream & str ) const
36 return str << "Access is blocked: Root: " << _root
37 << " dbPath: " << _dbpath;
40 std::ostream & RpmSubprocessException::dumpOn( std::ostream & str ) const
42 return str << "Subprocess failed. Error: " << _errmsg;
45 std::ostream & RpmInitException::dumpOn( std::ostream & str) const
47 return str << "Failed to initialize database: Root: " << _root
48 << " dbPath: " << _dbpath;
51 std::ostream & RpmDbOpenException::dumpOn( std::ostream & str) const
53 return str << "Failed to open database: Root: " << _root
54 << " dbPath: " << _dbpath;
57 std::ostream & RpmDbAlreadyOpenException::dumpOn( std::ostream & str) const
59 return str << "Can't switch to " << _new_root << " " << _new_dbpath
60 << " while accessing " << _old_root << " " << _old_dbpath;
63 std::ostream & RpmDbNotOpenException::dumpOn( std::ostream & str) const
65 return str << "RPM database not open";
68 std::ostream & RpmDbConvertException::dumpOn( std::ostream & str) const
70 return str << "RPM database conversion failed";
73 std::ostream & RpmNullDatabaseException::dumpOn( std::ostream & str) const
75 return str << "NULL rpmV4 database passed as argument!";
78 /////////////////////////////////////////////////////////////////
82 ///////////////////////////////////////////////////////////////////