libzypp
17.22.0
TargetException.cc
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
13
#include <string>
14
#include <iostream>
15
16
#include "
zypp/target/TargetException.h
"
17
#include "
zypp/base/Gettext.h
"
18
19
using namespace
std
;
20
22
namespace
zypp
23
{
24
namespace
target {
26
27
TargetAbortedException::TargetAbortedException()
28
:
TargetAbortedException
(
_
(
"Installation has been aborted as directed."
) )
29
{ }
30
31
std::ostream &
TargetAbortedException::dumpOn
( std::ostream &
str
)
const
32
{
33
//call base implementation, do not hardcode a string, do not blame user ( fixes bnc#978193 )
34
return
TargetException::dumpOn
(
str
);
35
}
36
37
39
}
// namespace target
40
}
// namespace zypp
zypp::Exception::dumpOn
virtual std::ostream & dumpOn(std::ostream &str) const
Overload this to print a proper error message.
Definition:
Exception.cc:141
TargetException.h
_
#define _(MSG)
Definition:
Gettext.h:37
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition:
CodePitfalls.doc:1
zypp::target::TargetAbortedException::dumpOn
virtual std::ostream & dumpOn(std::ostream &str) const
Overload this to print a proper error message.
Definition:
TargetException.cc:31
Gettext.h
std
Definition:
Arch.h:347
str
String related utilities and Regular expression matching.
zypp::target::TargetAbortedException
Definition:
TargetException.h:51
zypp
target
TargetException.cc
Generated by
1.8.16