]> Creatis software - creaEnvironment.git/blob - lib/kernel_Environment/ViewerNDimensionsException.h
License Files Headers
[creaEnvironment.git] / lib / kernel_Environment / ViewerNDimensionsException.h
1 /*
2  # ---------------------------------------------------------------------
3  #
4  # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5  #                        pour la SantÈ)
6  # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7  # Previous Authors : Laurent Guigues, Jean-Pierre Roux
8  # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
9  #
10  #  This software is governed by the CeCILL-B license under French law and
11  #  abiding by the rules of distribution of free software. You can  use,
12  #  modify and/ or redistribute the software under the terms of the CeCILL-B
13  #  license as circulated by CEA, CNRS and INRIA at the following URL
14  #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
15  #  or in the file LICENSE.txt.
16  #
17  #  As a counterpart to the access to the source code and  rights to copy,
18  #  modify and redistribute granted by the license, users are provided only
19  #  with a limited warranty  and the software's author,  the holder of the
20  #  economic rights,  and the successive licensors  have only  limited
21  #  liability.
22  #
23  #  The fact that you are presently reading this means that you have had
24  #  knowledge of the CeCILL-B license and that you accept its terms.
25  # ------------------------------------------------------------------------ */
26
27 /*=========================================================================
28
29   Program:  ViewerNDimensionsException
30   Module:    $RCSfile: ViewerNDimensionsException.h,v $
31   Language:  C++
32   Date:      $Date: 2012/11/15 12:12:26 $
33   Version:   $Revision: 1.6 $
34   Objective:  Exception of the program when something has setted wrong
35   Authot:       Monica Maria Lozano Romero
36
37   Copyright: (c) 2007
38   License:
39
40      This software is distributed WITHOUT ANY WARRANTY; without even
41      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
42      PURPOSE.  See the above copyright notice for more information.
43
44
45 =========================================================================*/
46
47 #ifndef __VIEWERNDIMENSIONS_H__INCLUDED
48 #define __VIEWERNDIMENSIONS_H__INCLUDED
49
50 // SYSTEM INCLUDES
51
52 #include <iostream>
53 #include <exception>
54 #include "ConceptInstantHandler.h"
55 // PROJECT INCLUDES
56
57
58 // LOCAL INCLUDES
59
60 // FORWARD REFERENCES
61
62 //NAMESPACE
63
64
65         class creaEnvironment_EXPORTS ViewerNDimensionsException: 
66                 public std::exception
67                 {
68                         public:
69                                 //====== LIFECYCLE ========
70                                 ViewerNDimensionsException(std::string msg)
71                                 {
72                                         this->msg=msg;
73                                 }
74 #if(WIN32)
75 #else
76                                 virtual ~ViewerNDimensionsException() throw (){};
77 #endif
78                                 
79                                 
80                                 //======= INQUIRY ===========
81                                 virtual const char* what() const throw()
82                                 {
83                                         return msg.c_str();
84                                 }
85                                 
86                         private:
87                                 /*
88                                 * msg to return
89                                 */
90                                 std::string msg; 
91                 };//viewerNDimensionsException; 
92 #endif