libzypp  17.25.6
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 
21 namespace zypp
22 {
23  namespace target {
25 
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
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:2
zypp::target::TargetAbortedException::dumpOn
virtual std::ostream & dumpOn(std::ostream &str) const
Overload this to print a proper error message.
Definition: TargetException.cc:30
zypp::target::TargetAbortedException::TargetAbortedException
TargetAbortedException()
Definition: TargetException.cc:26
Gettext.h
Interface to gettext.
str
String related utilities and Regular expression matching.
zypp::target::TargetAbortedException
Definition: TargetException.h:52