libyui  3.3.1
YUIInvalidChildException< YWidget > Class Template Reference

Exception class for "invalid child". More...

#include <YUIException.h>

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

Public Member Functions

 YUIInvalidChildException (YWidget *container, YWidget *child=0)
 
YWidgetcontainer () const
 Returns the container widget whose child should be removed etc.
 
YWidgetchild () const
 Returns the child widget.
 
- Public Member Functions inherited from YUIException
 YUIException ()
 Default constructor. More...
 
 YUIException (const std::string &msg_r)
 Constructor taking a message. More...
 
virtual ~YUIException () throw ()
 Destructor.
 
const YCodeLocationwhere () const
 Return YCodeLocation.
 
void relocate (const YCodeLocation &newLocation) const
 Exchange location on rethrow.
 
const std::string & msg () const
 Return the message string provided to the constructor. More...
 
void setMsg (const std::string &msg)
 Set a new message string.
 
std::string asString () const
 Error message provided by dumpOn as string.
 
virtual const char * what () const throw ()
 Return message string. More...
 

Protected Member Functions

virtual std::ostream & dumpOn (std::ostream &str) const
 Write proper error message with all relevant data. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from YUIException
static std::string strErrno (int errno_r)
 Make a string from errno_r.
 
static std::string strErrno (int errno_r, const std::string &msg)
 Make a string from errno_r and msg_r.
 
static void log (const YUIException &exception, const YCodeLocation &location, const char *const prefix)
 Drop a log line on throw, catch or rethrow. More...
 

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 712 of file YUIException.h.

Member Function Documentation

◆ 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.

Definition at line 742 of file YUIException.h.

Here is the call graph for this function:

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