libyui
3.4.2
|
Exception class for "optional widget not supported". More...
#include <YUIException.h>
Public Member Functions | |
YUIUnsupportedWidgetException (const std::string &widgetType) | |
![]() | |
YUIException () | |
Default constructor. More... | |
YUIException (const std::string &msg_r) | |
Constructor taking a message. More... | |
virtual | ~YUIException () throw () |
Destructor. | |
const YCodeLocation & | where () 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... | |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
virtual std::ostream & | dumpOn (std::ostream &str) const |
Overload this to print a proper error message. | |
Exception class for "optional widget not supported".
Note that applications are supposed to check with YUI::optionalWidgetFactory()->hasXYWidget() before trying to create such a widget. This exception is thrown if that check wasn't done, the application tried to create that kind of widget anyway, but the UI doesn't support that widget.
Definition at line 775 of file YUIException.h.