12 #ifndef ZYPP_BASE_USERREQUESTEXCEPTION_H
13 #define ZYPP_BASE_USERREQUESTEXCEPTION_H
79 virtual std::ostream &
dumpOn( std::ostream & str )
const;
86 #define declException( EXCP, KIND ) \
87 struct EXCP : public UserRequestException { \
89 EXCP( const std::string & msg_r = std::string() ) \
90 : UserRequestException( KIND, msg_r ) \
92 EXCP( const std::string & msg_r, const Exception & history_r ) \
93 : UserRequestException( KIND, msg_r, history_r ) \
107 #endif // ZYPP_BASE_USERREQUESTEXCEPTION_H
declException(IgnoreRequestException, IGNORE)
virtual std::ostream & dumpOn(std::ostream &str) const
Overload this to print a proper error message.
UserRequestException(const std::string &msg_r=std::string())
Base class for Exception.
Base for exceptions caused by explicit user request.