/*========================================================================= Program: ViewerNDimensionsException Module: $RCSfile: ViewerNDimensionsException.h,v $ Language: C++ Date: $Date: 2008/11/07 09:43:13 $ Version: $Revision: 1.2 $ Objective: Exception of the program when something has setted wrong Authot: Monica Maria Lozano Romero Copyright: (c) 2007 License: This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information. =========================================================================*/ #ifndef __VIEWERNDIMENSIONS_H__INCLUDED #define __VIEWERNDIMENSIONS_H__INCLUDED // SYSTEM INCLUDES #include #include // PROJECT INCLUDES // LOCAL INCLUDES // FORWARD REFERENCES //NAMESPACE class ViewerNDimensionsException: public std::exception { public: //====== LIFECYCLE ======== ViewerNDimensionsException(std::string msg) { this->msg=msg; } virtual ~ViewerNDimensionsException() throw (); //======= INQUIRY =========== virtual const char* what() const throw() { return msg.c_str(); } private: /* * msg to return */ std::string msg; };//viewerNDimensionsException; #endif