libyui  3.3.2
YUIUnknownPropertyException Class Reference

Exception class for "unknown property name": The application tried to set (or query) a property that doesn't exist. More...

#include <YUIException.h>

Inheritance diagram for YUIUnknownPropertyException:
Collaboration diagram for YUIUnknownPropertyException:

Public Member Functions

 YUIUnknownPropertyException (const std::string &propertyName, YWidget *widget=0)
 
- Public Member Functions inherited from YUIPropertyException
YProperty property () const
 Returns the property that caused this exception.
 
YWidgetwidget () const
 Returns the corresponding widget or 0 if there was none.
 
void setWidget (YWidget *w)
 Set the corresponding 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...
 
- Protected Member Functions inherited from YUIPropertyException
 YUIPropertyException (const YProperty &prop, YWidget *widget=0)
 

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

Exception class for "unknown property name": The application tried to set (or query) a property that doesn't exist.

Definition at line 553 of file YUIException.h.

Member Function Documentation

◆ dumpOn()

std::ostream & YUIUnknownPropertyException::dumpOn ( std::ostream &  str) const
protectedvirtual

Write proper error message with all relevant data.

Reimplemented from YUIException.

Implements YUIPropertyException.

Definition at line 140 of file YUIException.cc.


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