libzypp: zypp/target/TargetException.h Source File

libzypp 17.38.8

TargetException.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_TARGET_TARGETEXCEPTION_H
13#define ZYPP_TARGET_TARGETEXCEPTION_H
14
15#include <iosfwd>
16
17#include <string>
18
19#include <zypp-core/base/Exception.h>
20#include <zypp-core/Pathname.h>
21
23namespace zypp
24{
25 namespace target {
27 //
28 // CLASS NAME : TargetException
32 class ZYPP_API TargetException : public Exception
33 {
34 public:
38 TargetException()
39 : Exception( "Target Exception" )
40 {}
41
44 TargetException( const std::string & msg_r )
45 : Exception( msg_r )
46 {}
47
48 ~TargetException() throw() override {};
49 };
50
51 class ZYPP_API TargetAbortedException : public TargetException
52 {
53 public:
54 TargetAbortedException( );
55
59 TargetAbortedException( const std::string & msg_r )
60 : TargetException( msg_r )
61 {}
62
63 ~TargetAbortedException() throw() override {};
64 protected:
65 std::ostream & dumpOn( std::ostream & str ) const override;
66 private:
67 };
68
69
71 } // namespace target
72} // namespace zypp
74#endif // ZYPP_TARGET_TARGETEXCEPTION_H
Exception.h
Pathname.h
zypp::Exception::Exception
Exception()
Default ctor.
Definition Exception.cc:94
zypp::target::TargetAbortedException::TargetAbortedException
TargetAbortedException(const std::string &msg_r)
Ctor taking message.
Definition TargetException.h:59
zypp::target::TargetAbortedException::TargetAbortedException
TargetAbortedException()
Definition TargetException.cc:26
zypp::target::TargetAbortedException::~TargetAbortedException
~TargetAbortedException() override
Dtor.
Definition TargetException.h:63
zypp::target::TargetException::TargetException
TargetException(const std::string &msg_r)
Ctor taking message.
Definition TargetException.h:44
zypp::target::TargetException::TargetException
TargetException()
Ctor taking message.
Definition TargetException.h:38
zypp::target::TargetException::~TargetException
~TargetException() override
Dtor.
Definition TargetException.h:48
str
String related utilities and Regular expression matching.
zypp::target
Definition KeyRing.h:325
zypp::target::dumpOn
std::ostream & dumpOn(std::ostream &str, const RpmPostTransCollector::Impl &obj)
relates: RpmPostTransCollector::Impl Verbose stream output
Definition RpmPostTransCollector.cc:401
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2
zypp::ZYPP_API
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
Definition Arch.h:173