aboutsummaryrefslogtreecommitdiff
path: root/src/support/error_handler.h
blob: 783529233f3bb40129f24baa8540344e749ce464 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef INPUTXSLT_SRC_SUPPORT_ERROR_HANDLER_H_
#define INPUTXSLT_SRC_SUPPORT_ERROR_HANDLER_H_

#include <xercesc/sax/ErrorHandler.hpp>

#include <string>

namespace InputXSLT {

class ErrorHandler : public xercesc::ErrorHandler {
	public:
		ErrorHandler(const std::string&);

		virtual void warning(const xercesc::SAXParseException&);
		virtual void error(const xercesc::SAXParseException&);
		virtual void fatalError(const xercesc::SAXParseException&);
		virtual void resetErrors();

	private:
		const std::string& transformation_path_;

};

}

#endif  // INPUTXSLT_SRC_SUPPORT_ERROR_HANDLER_H_