libzypp  17.11.4
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 
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
Interface to gettext.
virtual std::ostream & dumpOn(std::ostream &str) const
Overload this to print a proper error message.
Definition: Exception.cc:141
String related utilities and Regular expression matching.
Definition: Arch.h:344
virtual std::ostream & dumpOn(std::ostream &str) const
Overload this to print a proper error message.
#define _(MSG)
Definition: Gettext.h:37
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1