1
/*---------------------------------------------------------------------\
3
| |__ / \ / / . \ . \ |
8
\---------------------------------------------------------------------*/
9
/** \file zypp/target/rpm/RpmException.cc
16
#include "zypp/target/rpm/RpmException.h"
20
///////////////////////////////////////////////////////////////////
22
{ /////////////////////////////////////////////////////////////////
25
/////////////////////////////////////////////////////////////////
28
/////////////////////////////////////////////////////////////////
30
std::ostream & RpmInvalidRootException::dumpOn( std::ostream & str ) const
32
return str << "Illegal root " << _root
33
<< " or dbPath " << _dbpath << endl;
36
std::ostream & RpmAccessBlockedException::dumpOn( std::ostream & str ) const
38
return str << "Access is blocked: Root: " << _root
39
<< " dbPath: " << _dbpath << endl;
42
std::ostream & RpmSubprocessException::dumpOn( std::ostream & str ) const
44
return str << "Subprocess failed. Error: " << _errmsg << endl;
47
std::ostream & RpmInitException::dumpOn( std::ostream & str) const
49
return str << "Failed to initialize database: Root: " << _root
50
<< " dbPath: " << _dbpath << endl;
53
std::ostream & RpmDbOpenException::dumpOn( std::ostream & str) const
55
return str << "Failed to open database: Root: " << _root
56
<< " dbPath: " << _dbpath << endl;
59
std::ostream & RpmDbAlreadyOpenException::dumpOn( std::ostream & str) const
61
return str << "Can't switch to " << _new_root << " " << _new_dbpath
62
<< " while accessing " << _old_root << " " << _old_dbpath << endl;
65
std::ostream & RpmDbNotOpenException::dumpOn( std::ostream & str) const
67
return str << "RPM database not open" << endl;
70
std::ostream & RpmDbConvertException::dumpOn( std::ostream & str) const
72
return str << "RPM database conversion failed" << endl;
75
std::ostream & RpmNullDatabaseException::dumpOn( std::ostream & str) const
77
return str << "NULL rpmV4 database passed as argument!" << endl;
80
/////////////////////////////////////////////////////////////////
84
///////////////////////////////////////////////////////////////////