1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/base/UserRequestException.cc
13 //#include <zypp/base/Logger.h>
15 #include <zypp/base/UserRequestException.h>
19 ///////////////////////////////////////////////////////////////////
21 { /////////////////////////////////////////////////////////////////
23 ///////////////////////////////////////////////////////////////////
25 // METHOD NAME : UserRequestException::UserRequestException
28 UserRequestException::UserRequestException( const std::string & msg_r )
29 : Exception( msg_r ), _kind( UNSPECIFIED )
32 UserRequestException::UserRequestException( const std::string & msg_r, const Exception & history_r )
33 : Exception( msg_r, history_r ), _kind( UNSPECIFIED )
36 UserRequestException::UserRequestException( Kind kind_r, const std::string & msg_r )
37 : Exception( msg_r ), _kind( kind_r )
40 UserRequestException::UserRequestException( Kind kind_r, const std::string & msg_r, const Exception & history_r )
41 : Exception( msg_r, history_r ), _kind( kind_r )
44 ///////////////////////////////////////////////////////////////////
46 // METHOD NAME : UserRequestException::dumpOn
47 // METHOD TYPE : std::ostream &
49 std::ostream & UserRequestException::dumpOn( std::ostream & str ) const
53 case UNSPECIFIED: str << "UNSPECIFIED"; break;
54 case IGNORE: str << "IGNORE"; break;
55 case SKIP: str << "SKIP"; break;
56 case RETRY: str << "RETRY"; break;
57 case ABORT: str << "ABORT"; break;
60 return str << " request: " << msg();
63 /////////////////////////////////////////////////////////////////
65 ///////////////////////////////////////////////////////////////////