1 //=============================================================================
2 // File : Utils_SALOME_Exception.hxx
3 // Created : Mon Nov 5 17:01:47 CET 2001
4 // Author : Antoine YESSAYAN, EDF
6 // Copyright : EDF 2001
8 //=============================================================================
10 #if !defined( __Utils_SALOME_Exception_hxx__ )
11 #define __Utils_SALOME_Exception_hxx__
17 # define LOCALIZED(message) #message , __FILE__ , __LINE__
19 class SALOME_Exception : public exception
23 SALOME_Exception( void );
26 const char* _text ; // pointeur constant et zone pointee constante !!!!
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 () ;
37 #endif /* #if !defined( __Utils_SALOME_Exception_hxx__ ) */