libzypp: zypp/target/TargetException.cc Source File

libzypp 17.38.14

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