Unicorn XML Toolkit
Version 1.00.00

Namespace EcmaScript
Class CErrorHandler

class CErrorHandler {
public:
    CErrorHandler();
    virtual ~CErrorHandler();
public:
    virtual bool Report(
        int nLineNumber, const CString &strMessage) = 0;
    };

The abstract interface for reporting parse errors.

An application must provide a derived class implementing this interface.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
Constructor/Destructor Summary
CErrorHandler ();
����������Constructs the error handler.
~CErrorHandler ();
����������Destroys the error handler.

Function Summary
bool Report (int nLineNumber, const CString &strMessage);
����������Reports an error.

Constructor/Destructor Detail

CErrorHandler

CErrorHandler();

Constructs the error handler.

~CErrorHandler

virtual ~CErrorHandler();

Destroys the error handler.

Function Detail

Report

virtual bool Report(
    int nLineNumber, const CString &strMessage) = 0;

Reports an error.

The value returned by this function can be used for limiting the number of parse errors allowed. The error handler might request termination of the parsing if the internal error counter implemented by this error handler exceeded the certain limit.

Parameters:
nLineNumber - a line number in the ECMAScript program at which the parse error occured
strMessage - text of the error message
Returns:
true if parsing can be continued; false if the application requested parsing termination

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

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