libyui  3.0.10
YUIInvalidChildException< YWidget > Class Template Reference

#include <YUIException.h>

Inheritance diagram for YUIInvalidChildException< YWidget >:
Collaboration diagram for YUIInvalidChildException< YWidget >:

List of all members.

Public Member Functions

 YUIInvalidChildException (YWidget *container, YWidget *child=0)
YWidgetcontainer () const
YWidgetchild () const

Protected Member Functions

virtual std::ostream & dumpOn (std::ostream &str) const

Detailed Description

template<class YWidget>
class YUIInvalidChildException< YWidget >

Exception class for "invalid child". One of:

  • Attempt to remove a child from a children manager that is not in that manager's children list.
  • Child widget of wrong type added to a container widget, e.g., anything other than a YPushButton added to a YButtonBox.

Definition at line 696 of file YUIException.h.


Member Function Documentation

template<class YWidget >
YWidget* YUIInvalidChildException< YWidget >::child ( ) const [inline]

Returns the child widget.

Definition at line 718 of file YUIException.h.

template<class YWidget >
YWidget* YUIInvalidChildException< YWidget >::container ( ) const [inline]

Returns the container widget whose child should be removed etc.

Definition at line 713 of file YUIException.h.

template<class YWidget >
virtual std::ostream& YUIInvalidChildException< YWidget >::dumpOn ( std::ostream &  str) const [inline, protected, virtual]

Write proper error message with all relevant data. Reimplemented from YUIException.

Reimplemented from YUIException.

Definition at line 726 of file YUIException.h.

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Friends