Imported Upstream version 17.23.5
[platform/upstream/libzypp.git] / zypp / parser / ParseException.h
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/parser/tagfile/ParseException.h
10  *
11 */
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>
19 #include <zypp/base/UserRequestException.h>
20
21 ///////////////////////////////////////////////////////////////////
22 namespace zypp
23 { /////////////////////////////////////////////////////////////////
24   ///////////////////////////////////////////////////////////////////
25   namespace parser
26   { /////////////////////////////////////////////////////////////////
27
28     ///////////////////////////////////////////////////////////////////
29     //
30     //  CLASS NAME : ParseException
31     //
32     /** */
33     class ParseException : public Exception
34     {
35     public:
36       /** Default ctor */
37       ParseException();
38       /** Ctor */
39       ParseException( const std::string & msg_r );
40         /** Dtor */
41       virtual ~ParseException() throw();
42     protected:
43       virtual std::ostream & dumpOn( std::ostream & str ) const;
44     };
45     ///////////////////////////////////////////////////////////////////
46
47     /////////////////////////////////////////////////////////////////
48   } // namespace parser
49   ///////////////////////////////////////////////////////////////////
50   /////////////////////////////////////////////////////////////////
51 } // namespace zypp
52 ///////////////////////////////////////////////////////////////////
53 #endif // ZYPP_PARSER_TAGFILE_PARSEEXCEPTION_H