29 #ifndef Utils_ExceptHandlers_HeaderFile
30 #define Utils_ExceptHandlers_HeaderFile
32 #include "SALOME_Utils.hxx"
36 typedef void (*PVF)();
43 { old = std::set_unexpected(f); }
44 ~
Unexpect() { std::set_unexpected(old); }
47 { old = ::set_unexpected(f); }
48 ~
Unexpect() { ::set_unexpected(old); }
58 { old = std::set_terminate(f); }
62 { old = ::set_terminate(f); }
67 #define UNEXPECT_CATCH(FuncName, ExceptionConstructor) \
68 inline void FuncName () {\
69 throw ExceptionConstructor (); \
86 UTILS_EXPORT
extern void SalomeException();
87 UTILS_EXPORT
extern void SALOME_SalomeException();