+   * \brief Function used in SMESH_CATCH to convert a caught exception to
+   * SALOME::SALOME_Exception
+   */
+  inline void throwCorbaException(const char* excText)
+  {
+    THROW_SALOME_CORBA_EXCEPTION( excText, SALOME::INTERNAL_ERROR );
+  }
This commit is contained in:
eap 2012-12-17 15:38:09 +00:00
parent dfe68f4de1
commit c3597c66f0

View File

@ -36,13 +36,15 @@
#include CORBA_CLIENT_HEADER(SALOMEDS)
#include CORBA_CLIENT_HEADER(SALOMEDS_Attributes)
#include "SMESH_Gen.hxx"
#include "SMESH_Mesh_i.hxx"
#include "SMESH_Hypothesis_i.hxx"
#include "SALOME_Component_i.hxx"
#include "SALOME_NamingService.hxx"
#include "SMESH_Gen.hxx"
#include "GEOM_Client.hxx"
#include <SALOME_Component_i.hxx>
#include <SALOME_NamingService.hxx>
#include <Utils_CorbaException.hxx>
#include <GEOM_Client.hxx>
#include <TCollection_AsciiString.hxx>
#include <Resource_DataMapOfAsciiStringAsciiString.hxx>
@ -630,6 +632,15 @@ namespace SMESH
{
return dynamic_cast<T>(SMESH_Gen_i::GetServant(theArg).in());
}
/*!
* \brief Function used in SMESH_CATCH to convert a caught exception to
* SALOME::SALOME_Exception
*/
inline void throwCorbaException(const char* excText)
{
THROW_SALOME_CORBA_EXCEPTION( excText, SALOME::INTERNAL_ERROR );
}
}