libzypp
10.5.0
|
00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_TARGET_TARGETEXCEPTION_H 00013 #define ZYPP_TARGET_TARGETEXCEPTION_H 00014 00015 #include <iosfwd> 00016 00017 #include <string> 00018 00019 #include "zypp/base/Exception.h" 00020 #include "zypp/Pathname.h" 00021 00023 namespace zypp 00024 { 00025 namespace target { 00027 // 00028 // CLASS NAME : TargetException 00032 class TargetException : public Exception 00033 { 00034 public: 00038 TargetException() 00039 : Exception( "Target Exception" ) 00040 {} 00044 TargetException( const std::string & msg_r ) 00045 : Exception( msg_r ) 00046 {} 00048 virtual ~TargetException() throw() {}; 00049 }; 00050 00051 class TargetAbortedException : public TargetException 00052 { 00053 public: 00057 TargetAbortedException( const std::string & msg_r ) 00058 : TargetException( msg_r ) 00059 {} 00061 virtual ~TargetAbortedException() throw() {}; 00062 protected: 00063 virtual std::ostream & dumpOn( std::ostream & str ) const; 00064 private: 00065 }; 00066 00067 00069 } // namespace target 00070 } // namespace zypp 00072 #endif // ZYPP_TARGET_TARGETEXCEPTION_H