gui::InvalidMenuException Class Reference

Exception raised when encountering invalid menu item. More...

#include <invalidmenuexception.h>

List of all members.

Public Member Functions

 InvalidMenuException (const QString &message)
 ~InvalidMenuException () throw ()
QString message () const
const char * what () const throw ()

Protected Attributes

QString msg

Detailed Description

Exception raised when encountering invalid menu item.

Exception raised when program encountered some error while loading menu or toolbar - in menu or toolbar item definitions


Constructor & Destructor Documentation

gui::InvalidMenuException::InvalidMenuException ( const QString &  message  ) 

Default constructor of exception

Parameters:
message Exception message to pass

References msg.

gui::InvalidMenuException::~InvalidMenuException (  )  throw ()

default destructor


Member Function Documentation

QString gui::InvalidMenuException::message (  )  const

Return exception message passed in constructor of this exception The message usually explain what item is invaild and why

Returns:
exception message

References msg.

Referenced by gui::QSMenu::addItem(), gui::QSMenu::addItemDef(), and gui::QSMenu::QSMenu().

const char * gui::InvalidMenuException::what (  )  const throw ()

Overloaded what() from std::exception
For getting usable error message if the exception is not handled

References msg.


Member Data Documentation

QString gui::InvalidMenuException::msg [protected]

exception message

Referenced by InvalidMenuException(), message(), and what().


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