libzypp  13.10.6
ParseException.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_PARSER_TAGFILE_PARSEEXCEPTION_H
13 #define ZYPP_PARSER_TAGFILE_PARSEEXCEPTION_H
14 
15 #include <iosfwd>
16 #include <string>
17 
18 #include "zypp/base/Exception.h"
20 
22 namespace zypp
23 {
24  namespace parser
26  {
27 
29  //
30  // CLASS NAME : ParseException
31  //
33  class ParseException : public Exception
34  {
35  public:
39  ParseException( const std::string & msg_r );
41  virtual ~ParseException() throw();
42  protected:
43  virtual std::ostream & dumpOn( std::ostream & str ) const;
44  };
46 
48  } // namespace parser
51 } // namespace zypp
53 #endif // ZYPP_PARSER_TAGFILE_PARSEEXCEPTION_H
virtual std::ostream & dumpOn(std::ostream &str) const
Overload this to print a proper error message.
Base class for Exception.
Definition: Exception.h:143