libzypp: zypp/parser/ParseException.cc Source File

libzypp 17.25.10

ParseException.cc
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #include <iostream>
13 //#include <zypp/base/Logger.h>
14
15 #include <zypp/parser/ParseException.h>
16
17 using std::endl;
18
20 namespace zypp
21 {
23 namespace parser
24 {
25
27 //
28 // METHOD NAME : ParseException::ParseException
29 // METHOD TYPE : Ctor
30 //
31 ParseException::ParseException()
32 : Exception( "Parse exception" )
33 {}
34
36 //
37 // METHOD NAME : ParseException::ParseException
38 // METHOD TYPE : Ctor
39 //
40 ParseException::ParseException( const std::string & msg_r )
41 : Exception( msg_r )
42 {}
43
45 //
46 // METHOD NAME : ParseException::~ParseException
47 // METHOD TYPE : Dtor
48 //
49 ParseException::~ParseException() throw()
50 {}
51
53 //
54 // METHOD NAME : ParseException::dumpOn
55 // METHOD TYPE : std::ostream &
56 //
57 std::ostream & ParseException::dumpOn( std::ostream & str ) const
58 {
59 return Exception::dumpOn( str );
60 }
61
63 } // namespace parser
66 } // namespace zypp
ParseException.h
zypp::Exception
Base class for Exception.
Definition: Exception.h:146
zypp::Exception::dumpOn
virtual std::ostream & dumpOn(std::ostream &str) const
Overload this to print a proper error message.
Definition: Exception.cc:141
zypp::parser::ParseException::ParseException
ParseException()
Default ctor.
Definition: ParseException.cc:31
zypp::parser::ParseException::~ParseException
virtual ~ParseException()
Dtor.
Definition: ParseException.cc:49
zypp::parser::ParseException::dumpOn
virtual std::ostream & dumpOn(std::ostream &str) const
Overload this to print a proper error message.
Definition: ParseException.cc:57
str
String related utilities and Regular expression matching.
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2