libyui
 
Loading...
Searching...
No Matches
YUITooManyChildrenException< YWidget > Class Template Reference

#include <YUIException.h>

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

Public Member Functions

 YUITooManyChildrenException (YWidget *container)
 
YWidgetcontainer () 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 YUITooManyChildrenException< YWidget >

Exception class for "too many children": Attempt to add a child to a widget class that can't handle children (YPushButton etc.) or just one child (YFrame, YDialog).

Member Function Documentation

◆ container()

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

Returns the container widget that can't handle that many children.

◆ dumpOn()

template<class YWidget>
virtual std::ostream & YUITooManyChildrenException< 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: