Rogue Wave Views
Data Access Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions
IliErrorSink Class Reference

Error Class. More...

#include <ilviews/dataccess/error.h>

Inheritance diagram for IliErrorSink:
IliErrorList

Public Member Functions

 IliErrorSink ()
 This constructor initializes an error sink.
 
 IliErrorSink (const IliErrorSink &)
 This constructor copies an error sink.
 
virtual void addError (const IliErrorMessage &msg)
 Called when an error message is caught by the error sink. More...
 
IliErrorSinkoperator= (const IliErrorSink &sink)
 Assigns an error sink. More...
 

Detailed Description

Error Class.

Library: dataccess

The IliErrorSink class defines objects that serve as recipients for error messages that are thrown by different classes. For example, to catch all errors that are generated while acting on an IliTable object, it is possible to add an error sink to the IliTable object. This class is designed to be subclassed. Then in the subclass the addError() virtual member function should be overloaded.

See also
IliErrorList, IliErrorMessage.

Member Function Documentation

§ addError()

virtual void IliErrorSink::addError ( const IliErrorMessage msg)
virtual

Called when an error message is caught by the error sink.

Parameters
msgThe error message.

Reimplemented in IliErrorList.

§ operator=()

IliErrorSink& IliErrorSink::operator= ( const IliErrorSink sink)

Assigns an error sink.

Parameters
sinkThe second error sink.

© Copyright 2018, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.