libzypp
10.5.0
|
00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00013 #include <string> 00014 #include <iostream> 00015 00016 #include "zypp/target/rpm/RpmException.h" 00017 00018 using namespace std; 00019 00021 namespace zypp 00022 { 00023 namespace target 00024 { 00026 namespace rpm 00027 { 00029 00030 std::ostream & RpmInvalidRootException::dumpOn( std::ostream & str ) const 00031 { 00032 return str << "Illegal root " << _root 00033 << " or dbPath " << _dbpath << endl; 00034 } 00035 00036 std::ostream & RpmAccessBlockedException::dumpOn( std::ostream & str ) const 00037 { 00038 return str << "Access is blocked: Root: " << _root 00039 << " dbPath: " << _dbpath << endl; 00040 } 00041 00042 std::ostream & RpmSubprocessException::dumpOn( std::ostream & str ) const 00043 { 00044 return str << "Subprocess failed. Error: " << _errmsg << endl; 00045 } 00046 00047 std::ostream & RpmInitException::dumpOn( std::ostream & str) const 00048 { 00049 return str << "Failed to initialize database: Root: " << _root 00050 << " dbPath: " << _dbpath << endl; 00051 } 00052 00053 std::ostream & RpmDbOpenException::dumpOn( std::ostream & str) const 00054 { 00055 return str << "Failed to open database: Root: " << _root 00056 << " dbPath: " << _dbpath << endl; 00057 } 00058 00059 std::ostream & RpmDbAlreadyOpenException::dumpOn( std::ostream & str) const 00060 { 00061 return str << "Can't switch to " << _new_root << " " << _new_dbpath 00062 << " while accessing " << _old_root << " " << _old_dbpath << endl; 00063 } 00064 00065 std::ostream & RpmDbNotOpenException::dumpOn( std::ostream & str) const 00066 { 00067 return str << "RPM database not open" << endl; 00068 } 00069 00070 std::ostream & RpmDbConvertException::dumpOn( std::ostream & str) const 00071 { 00072 return str << "RPM database conversion failed" << endl; 00073 } 00074 00075 std::ostream & RpmNullDatabaseException::dumpOn( std::ostream & str) const 00076 { 00077 return str << "NULL rpmV4 database passed as argument!" << endl; 00078 } 00079 00081 } // namespace rpm 00082 } // namespace target 00083 } // namespace zypp