libyui
 
Loading...
Searching...
No Matches
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.

Member Function Documentation

◆ child()

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

Returns the child widget.

◆ container()

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

Returns the container widget whose child should be removed etc.

◆ dumpOn()

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.


The documentation for this class was generated from the following file: