Main | License | Installation | FAQ | Screenshots | Contact | Links | Sf.net | Freshmeat.net | KDE-Apps.org
Requirements | Design | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

XSLParseErrorHandler Class Reference

#include <xslParseErrorHandler.hpp>

Inheritance diagram for XSLParseErrorHandler:

Inheritance graph
[legend]

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

Detailed Description

Base class for error handlers for XSL-script. This implementation just throws the error.
See also:
XSLParseError

XSLCompiler

Date:
Mon Sep 25 2006
Author:
Jan Wedekind (wedesoft@users.sourceforge.net)

Definition at line 28 of file xslParseErrorHandler.hpp.


Constructor & Destructor Documentation

XSLParseErrorHandler::XSLParseErrorHandler ( void   )  [inline]

Constructor.

Definition at line 31 of file xslParseErrorHandler.hpp.

00031 {}


Member Function Documentation

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 }


Field Documentation

std::string XSLParseErrorHandler::m_context [protected]

Reimplemented from ParseErrorHandler.

Definition at line 38 of file xslParseErrorHandler.hpp.

Referenced by setContext().


The documentation for this class was generated from the following files:

anymeal 0.30 - recipe management software - Make the most of your food! - © Jan Wedekind Sun Sep 14 16:01:30 2008 - GNU Free Documentation License