]> Creatis software - creaEnvironment.git/blob - lib/kernel_Environment/ViewerNDimensionsException.h
a26b48437320a6b9862bbda86308456b3c6f38aa
[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/11/07 13:28:40 $
7   Version:   $Revision: 1.4 $
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 #include "ConceptInstantHandler.h"
29 // PROJECT INCLUDES
30
31
32 // LOCAL INCLUDES
33
34 // FORWARD REFERENCES
35
36 //NAMESPACE
37
38
39         class CreaEnvironment_EXPORTS ViewerNDimensionsException: 
40                 public std::exception
41                 {
42                         public:
43                                 //====== LIFECYCLE ========
44                                 ViewerNDimensionsException(std::string msg)
45                                 {
46                                         this->msg=msg;
47                                 }
48 #if(WIN32)
49 #else
50                                 virtual ~ViewerNDimensionsException() throw (){};
51 #endif
52                                 
53                                 
54                                 //======= INQUIRY ===========
55                                 virtual const char* what() const throw()
56                                 {
57                                         return msg.c_str();
58                                 }
59                                 
60                         private:
61                                 /*
62                                 * msg to return
63                                 */
64                                 std::string msg; 
65                 };//viewerNDimensionsException; 
66 #endif