libyui  3.0.10
 All Classes Functions Variables Enumerations Friends
YUIInvalidChildException< YWidget > Class Template Reference

#include <YUIException.h>

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

Public Member Functions

 YUIInvalidChildException (YWidget *container, YWidget *child=0)
 
YWidgetcontainer () const
 
YWidgetchild () const
 
- Public Member Functions inherited from YUIException
 YUIException ()
 
 YUIException (const std::string &msg_r)
 
virtual ~YUIException () throw ()
 
const YCodeLocationwhere () const
 
void relocate (const YCodeLocation &newLocation) const
 
const std::string & msg () const
 
void setMsg (const std::string &msg)
 
std::string asString () const
 
virtual const char * what () const throw ()
 

Protected Member Functions

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

Additional Inherited Members

- Static Public Member Functions inherited from YUIException
static std::string strErrno (int errno_r)
 
static std::string strErrno (int errno_r, const std::string &msg)
 
static void log (const YUIException &exception, const YCodeLocation &location, const char *const prefix)
 

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
inlineprotectedvirtual

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: