libzypp 17.38.1
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
22namespace zypp
23{
25 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 };
45
46
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
#define ZYPP_API
Definition Globals.h:69
Exception()
Default ctor.
Definition Exception.cc:94
EconfException(std::string msg_r)
std::ostream & dumpOn(std::ostream &str) const override
Overload this to print a proper error message.
Definition ansi.h:855
String related utilities and Regular expression matching.