libyui
 
Loading...
Searching...
No Matches
YUIPropertyException Class Referenceabstract

#include <YUIException.h>

Inheritance diagram for YUIPropertyException:
Collaboration diagram for YUIPropertyException:

Public Member Functions

YProperty property () const
 
YWidgetwidget () const
 
void setWidget (YWidget *w)
 
- 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

 YUIPropertyException (const YProperty &prop, YWidget *widget=0)
 
virtual std::ostream & dumpOn (std::ostream &str) const =0
 

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

Abstract base class for widget property exceptions.

Member Function Documentation

◆ dumpOn()

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

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

Reimplemented from YUIException.

Implemented in YUIBadPropertyArgException, YUIPropertyTypeMismatchException, YUISetReadOnlyPropertyException, and YUIUnknownPropertyException.

◆ property()

YProperty YUIPropertyException::property ( ) const
inline

Returns the property that caused this exception.

◆ setWidget()

void YUIPropertyException::setWidget ( YWidget * w)
inline

Set the corresponding widget.

◆ widget()

YWidget * YUIPropertyException::widget ( ) const
inline

Returns the corresponding widget or 0 if there was none.


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