UnCoVer (Using Coverability for Verification)
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
XercesLoggingErrorHandler.h
1 /***************************************************************************
2  * Copyright (C) 2014 by Jan Stückrath <jan.stueckrath@uni-due.de> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License *
15  * along with this program; if not, write to the *
16  * Free Software Foundation, Inc., *
17  * 51 Franklin St, Fifth Floor, Boston, MA 02110, USA *
18  ***************************************************************************/
19 
20 #ifndef GTXLERRORHANDLER_H_
21 #define GTXLERRORHANDLER_H_
22 
23 #include <xercesc/sax/ErrorHandler.hpp>
24 #include <xercesc/sax/SAXParseException.hpp>
25 
26 namespace uncover {
27  namespace io {
28 
34  class XercesLoggingErrorHandler: public xercesc::ErrorHandler {
35 
36  public:
37 
42 
47 
52  virtual void warning (const xercesc::SAXParseException &exc) override;
53 
58  virtual void error (const xercesc::SAXParseException &exc) override;
59 
64  virtual void fatalError (const xercesc::SAXParseException &exc) override;
65 
69  virtual void resetErrors () override;
70 
71  };
72 
73  } /* namespace io */
74 } /* namespace uncover */
75 
76 #endif /* GTXLERRORHANDLER_H_ */
XercesLoggingErrorHandler()
Generates a new XerxesLoggingErrorHandler.
Definition: XercesLoggingErrorHandler.cpp:33
virtual void resetErrors() override
Since errors are not stores by this class, this function does nothing.
Definition: XercesLoggingErrorHandler.cpp:53
virtual void error(const xercesc::SAXParseException &exc) override
Prints a Xerxes error to the standard logging stream.
Definition: XercesLoggingErrorHandler.cpp:41
virtual void warning(const xercesc::SAXParseException &exc) override
Prints a Xerxes warning to the standard logging stream.
Definition: XercesLoggingErrorHandler.cpp:37
Prints errors generated by the Xerces framework.
Definition: XercesLoggingErrorHandler.h:34
virtual ~XercesLoggingErrorHandler()
Destroys this XerxesLoggingErrorHandler.
Definition: XercesLoggingErrorHandler.cpp:35
virtual void fatalError(const xercesc::SAXParseException &exc) override
Prints a Xerxes fatal error to the standard logging stream.
Definition: XercesLoggingErrorHandler.cpp:47