Salome HOME
Porting to Mandrake 10.1 and new products:
[modules/kernel.git] / src / Utils / Utils_ExceptHandlers.cxx
1 // File:        Utils_ExceptHandler.cxx
2 // Created:     Mon Mar 15 10:23:41 2004
3 // Author:      Oksana TCHEBANOVA
4 //              <ota@localhost.localdomain>
5
6
7 #include "Utils_ExceptHandlers.hxx"
8 #include "Utils_CorbaException.hxx"
9 #include "Utils_SALOME_Exception.hxx"
10
11 #include <SALOMEconfig.h>
12 #include CORBA_SERVER_HEADER(SALOME_Exception)
13
14 using namespace std;
15
16 void SalomeException ()
17 {
18   throw SALOME_Exception("Salome Exception");
19 }
20
21 void SALOME_SalomeException() {
22   THROW_SALOME_CORBA_EXCEPTION("INTERNAL ERROR", SALOME::INTERNAL_ERROR);
23 }
24