libzypp: zypp-core/parser/parseexception.h Source File

libzypp 17.38.6

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
18#include <zypp-core/base/Exception.h>
19#include <zypp-core/base/UserRequestException>
20
22namespace zypp
23{
25 namespace parser
26 {
27
29 //
30 // CLASS NAME : ParseException
31 //
33 class ZYPP_API ParseException : public Exception
34 {
35 public:
37 ParseException();
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
48 class EconfException : public Exception
49 {
50 public:
51 EconfException()
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
Exception.h
zypp::Exception::Exception
Exception()
Default ctor.
Definition Exception.cc:94
zypp::ParseException::dumpOn
std::ostream & dumpOn(std::ostream &str) const override
Overload this to print a proper error message.
Definition parseexception.cc:55
zypp::ParseException::ParseException
ParseException()
Default ctor.
Definition parseexception.cc:29
zypp::parser::EconfException::EconfException
EconfException(std::string msg_r)
Definition parseexception.h:54
zypp::parser::EconfException::EconfException
EconfException()
Definition parseexception.h:51
std
Definition ansi.h:855
str
String related utilities and Regular expression matching.
zypp::parser
Definition HistoryLogReader.cc:30
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2
zypp::ZYPP_API
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
Definition Arch.h:173