Unicorn XML Toolkit
Version 1.00.00

Namespace Som
Class CErrorHandler

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

The abstract error handler interface for SOM IDL parsers.

If an application needs to implement customized error handling, it must implement this interface and then register an instance with the IDL parser using CParser::SetErrorHandler . The parser will then report all errors and warnings through 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.

Parameters:
nLineNumber - the line number in the source IDL file indicating the approximate location of an error source
strMessage - the error message
Returns:
true if the application requests termination of IDL parsing; false otherwise

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

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