]> Creatis software - creaEnvironment.git/blob - lib/kernel_Environment/ViewerNDimensionsException.h
*** empty log message ***
[creaEnvironment.git] / lib / kernel_Environment / ViewerNDimensionsException.h
1 /*=========================================================================
2
3   Program:  ViewerNDimensionsException
4   Module:    $RCSfile: ViewerNDimensionsException.h,v $
5   Language:  C++
6   Date:      $Date: 2008/10/31 15:08:40 $
7   Version:   $Revision: 1.1 $
8   Objective:  Exception of the program when something has setted wrong
9   Authot:       Monica Maria Lozano Romero
10
11   Copyright: (c) 2007
12   License:
13
14      This software is distributed WITHOUT ANY WARRANTY; without even
15      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16      PURPOSE.  See the above copyright notice for more information.
17
18
19 =========================================================================*/
20
21 #ifndef __VIEWERNDIMENSIONS_H__INCLUDED
22 #define __VIEWERNDIMENSIONS_H__INCLUDED
23
24 // SYSTEM INCLUDES
25
26 #include <iostream>
27 #include <exception>
28
29 // PROJECT INCLUDES
30
31
32 // LOCAL INCLUDES
33
34 // FORWARD REFERENCES
35
36 //NAMESPACE
37
38
39         class ViewerNDimensionsException: public std::exception
40                 {
41                         public:
42                                 //====== LIFECYCLE ========
43                                 ViewerNDimensionsException(std::string msg)
44                                 {
45                                         this->msg=msg;
46                                 }
47                                 //======= INQUIRY ===========
48                                 virtual const char* what() const throw()
49                                 {
50                                         return msg.c_str();
51                                 }
52                                 
53                         private:
54                                 /*
55                                 * msg to return
56                                 */
57                                 std::string msg; 
58                 };//viewerNDimensionsException; 
59 #endif