1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/target/TargetException.h
12 #ifndef ZYPP_TARGET_TARGETEXCEPTION_H
13 #define ZYPP_TARGET_TARGETEXCEPTION_H
19 #include "zypp/base/Exception.h"
20 #include "zypp/Pathname.h"
22 ///////////////////////////////////////////////////////////////////
24 { /////////////////////////////////////////////////////////////////
26 ///////////////////////////////////////////////////////////////
28 // CLASS NAME : TargetException
29 /** Just inherits Exception to separate target exceptions
32 class TargetException : public Exception
35 /** Ctor taking message.
36 * Use \ref ZYPP_THROW to throw exceptions.
39 : Exception( "Target Exception" )
41 /** Ctor taking message.
42 * Use \ref ZYPP_THROW to throw exceptions.
44 TargetException( const std::string & msg_r )
48 virtual ~TargetException() throw() {};
51 class TargetAbortedException : public TargetException
54 TargetAbortedException( );
56 /** Ctor taking message.
57 * Use \ref ZYPP_THROW to throw exceptions.
59 TargetAbortedException( const std::string & msg_r )
60 : TargetException( msg_r )
63 virtual ~TargetAbortedException() throw() {};
65 virtual std::ostream & dumpOn( std::ostream & str ) const;
70 /////////////////////////////////////////////////////////////////
73 ///////////////////////////////////////////////////////////////////
74 #endif // ZYPP_TARGET_TARGETEXCEPTION_H