libzypp  17.38.7
parseexception.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_CORE_PARSER_PARSEEXCEPTION_H
13 #define ZYPP_CORE_PARSER_PARSEEXCEPTION_H
14 
15 #include <iosfwd>
16 #include <string>
17 
19 #include <zypp-core/base/UserRequestException>
20 
22 namespace zypp
23 {
24  namespace parser
26  {
27 
29  //
30  // CLASS NAME : ParseException
31  //
34  {
35  public:
39  ParseException( const std::string & msg_r );
41  ~ParseException() throw() override;
42  protected:
43  std::ostream & dumpOn( std::ostream & str ) const override;
44  };
46 
48  class EconfException : public Exception
49  {
50  public:
52  : Exception( "Econf Exception" )
53  {}
54  EconfException( std::string msg_r )
55  : Exception( std::move(msg_r) )
56  {}
57  };
58 
60  } // namespace parser
63 } // namespace zypp
65 #endif // ZYPP_CORE_PARSER_PARSEEXCEPTION_H
Thrown by EconfDict.
String related utilities and Regular expression matching.
Definition: ansi.h:854
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
Definition: Arch.h:173
std::ostream & dumpOn(std::ostream &str, const IniDict &obj)
relates: IniDict Dump as single ini-file.
Definition: inidict.h:180
Base class for Exception.
Definition: Exception.h:152
EconfException(std::string msg_r)
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1