Unicorn XML Toolkit
Version 1.00.00

Namespace Sxp
Class IErrorHandler

class IErrorHandler: public CInterface {
public:
    virtual ~IErrorHandler();
public:
    virtual void Error(CParseException *e) = 0;
    virtual void FatalError(CParseException *e) = 0;
    virtual void Warning(CParseException *e) = 0;
    };

The abstract interface to SXP error handlers.

If an SXP application needs to implement customized error handling, it must implement this interface and then register an instance with the SXP parser using the IParser::SetErrorHandler method. The parser will then report all errors and warnings through this interface.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
CParseException
Constructor/Destructor Summary
~IErrorHandler ();
����������Destroys the error handler.

Function Summary
void Error (CParseException *e);
����������Receives notification of a recoverable error.
void FatalError (CParseException *e);
����������Receives notification of a non-recoverable error.
void Warning (CParseException *e);
����������Receives notification of a warning.

Constructor/Destructor Detail

~IErrorHandler

virtual ~IErrorHandler();

Destroys the error handler.

Function Detail

Error

virtual void Error(CParseException *e) = 0;

Receives notification of a recoverable error.

Parameters:
e - the parse exception containing the error information

FatalError

virtual void FatalError(CParseException *e) = 0;

Receives notification of a non-recoverable error.

Parameters:
e - the parse exception containing the error information

Warning

virtual void Warning(CParseException *e) = 0;

Receives notification of a warning.

Parameters:
e - the parse exception containing the warning information

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.