Salome HOME
Initialisation de la base KERNEL avec la version operationnelle de KERNEL_SRC issue...
[modules/kernel.git] / src / Utils / Utils_SALOME_Exception.hxx
1 //=============================================================================
2 // File      : Utils_SALOME_Exception.hxx
3 // Created   : Mon Nov  5 17:01:47 CET 2001
4 // Author    : Antoine YESSAYAN, EDF
5 // Project   : SALOME
6 // Copyright : EDF 2001
7 // $Header$
8 //=============================================================================
9
10 #if !defined( __Utils_SALOME_Exception_hxx__ )
11 #define __Utils_SALOME_Exception_hxx__
12
13 using namespace std;
14 # include <exception>
15 # include <iostream>
16
17 # define LOCALIZED(message) #message , __FILE__ , __LINE__
18
19 class SALOME_Exception : public exception
20 {
21
22 private :
23         SALOME_Exception( void );
24
25 protected :
26         const char* _text ;     // pointeur constant et zone pointee constante !!!!
27
28 public :
29         SALOME_Exception( const char *text, const char *fileName=0, const unsigned int lineNumber=0 );
30         SALOME_Exception( const SALOME_Exception &ex );
31         ~SALOME_Exception() throw ();
32         friend ostream & operator<<( ostream &os , const SALOME_Exception &ex );
33         virtual const char *what( void ) const throw () ;
34 } ;
35
36
37 #endif          /* #if !defined( __Utils_SALOME_Exception_hxx__ ) */