rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Data Access Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IliErrorSink Class Reference

Error Class. More...

#include <ilviews/dataccess/error.h>

Inheritance diagram for IliErrorSink:
IliErrorList

List of all members.

Public Member Functions

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

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

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

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

Parameters:
msg The error message.

Reimplemented in IliErrorList.

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

Assigns an error sink.

Parameters:
sink The second error sink.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends

© Copyright 2012, 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.