/* * PDFedit - free program for PDF document manipulation. * Copyright (C) 2006, 2007 PDFedit team: Michal Hocko, * Miroslav Jahoda, * Jozef Misutka, * Martin Petricek * * Project is hosted on http://sourceforge.net/projects/pdfedit */ /** @file InvalidMenuException - class for exception raised when found some error in menu definitions @author Martin Petricek */ #include #include "invalidmenuexception.h" namespace gui { /** Default constructor of exception @param message Exception message to pass */ InvalidMenuException::InvalidMenuException(const QString &message){ msg=message; } /** Return exception message passed in constructor of this exception The message usually explain what item is invaild and why @return exception message */ QString InvalidMenuException::message() const { return msg; } /** default destructor */ InvalidMenuException::~InvalidMenuException() throw() { } /** Overloaded what() from std::exception
For getting usable error message if the exception is not handled */ const char* InvalidMenuException::what() const throw(){ return msg.ascii(); } } // namespace gui