#include <xslParseErrorHandler.hpp>

Public Member Functions | |
| XSLParseErrorHandler (void) | |
| Constructor. | |
| void | setContext (const std::string &context) |
| virtual void | error (const XSLParseError &e) throw (Error) |
| Method handling the errors. | |
Protected Attributes | |
| std::string | m_context |
Definition at line 28 of file xslParseErrorHandler.hpp.
| XSLParseErrorHandler::XSLParseErrorHandler | ( | void | ) | [inline] |
| void XSLParseErrorHandler::setContext | ( | const std::string & | context | ) | [inline] |
Reimplemented from ParseErrorHandler.
Definition at line 33 of file xslParseErrorHandler.hpp.
References m_context.
00033 { m_context = context; }
| void XSLParseErrorHandler::error | ( | const XSLParseError & | e | ) | throw (Error) [virtual] |
Method handling the errors.
Reimplemented in XSLIgnoreErrorHandler.
Definition at line 18 of file xslParseErrorHandler.cpp.
References ERRORMACRO.
00019 { 00020 if ( m_context.empty() ) { 00021 ERRORMACRO( false, Error, , "Error applying XSL-script \"" 00022 << e.getXSLScriptFileName() << "\": " 00023 << e.getMessage() ); 00024 } else { 00025 ERRORMACRO( false, Error, , m_context << ": Error applying XSL-script \"" 00026 << e.getXSLScriptFileName() << "\": " 00027 << e.getMessage() ); 00028 } 00029 }
std::string XSLParseErrorHandler::m_context [protected] |
Reimplemented from ParseErrorHandler.
Definition at line 38 of file xslParseErrorHandler.hpp.
Referenced by setContext().