]> Creatis software - creaEnvironment.git/blob - lib/kernel_Environment/ViewerNDimensionsException.h
e
[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 09:43:13 $
7   Version:   $Revision: 1.2 $
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: 
40                 public std::exception
41                 {
42                         public:
43                                 //====== LIFECYCLE ========
44                                 ViewerNDimensionsException(std::string msg)
45                                 {
46                                         this->msg=msg;
47                                 }
48                                 virtual ~ViewerNDimensionsException() throw ();
49                                 
50                                 
51                                 //======= INQUIRY ===========
52                                 virtual const char* what() const throw()
53                                 {
54                                         return msg.c_str();
55                                 }
56                                 
57                         private:
58                                 /*
59                                 * msg to return
60                                 */
61                                 std::string msg; 
62                 };//viewerNDimensionsException; 
63 #endif