#include "SMESH_Filter_i.hxx"
#include "SMESH_PythonDump.hxx"
-#include "CASCatch.hxx"
#include "utilities.h"
#include "Utils_ExceptHandlers.hxx"
#include "Utils_CorbaException.hxx"
#ifdef NO_CAS_CATCH
#include <Standard_ErrorHandler.hxx>
-#else
-#include "CASCatch.hxx"
#endif
#include <sstream>
{
initData();
-#ifdef NO_CAS_CATCH
try {
+#ifdef NO_CAS_CATCH
OCC_CATCH_SIGNALS;
-#else
- CASCatch_TRY {
#endif
TIDSortedElemSet elements;
arrayToSet(theIDsOfElements, GetMeshDS(), elements, theElementType);
return theMakeGroups ? getGroups(groupIds.get()) : 0;
-#ifdef NO_CAS_CATCH
} catch(Standard_Failure) {
-#else
- } CASCatch_CATCH(Standard_Failure) {
-#endif
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
INFOS( "SMESH_MeshEditor_i::ExtrusionSweep fails - "<< aFail->GetMessageString() );
}
#ifdef NO_CAS_CATCH
#include <Standard_ErrorHandler.hxx>
-#else
-#include "CASCatch.hxx"
#endif
Function::Function( const int conv )
{
bool ok = true;
if (myConv == 0) {
-#ifdef NO_CAS_CATCH
try {
+#ifdef NO_CAS_CATCH
OCC_CATCH_SIGNALS;
-#else
- CASCatch_TRY {
#endif
f = pow( 10., f );
-#ifdef NO_CAS_CATCH
} catch(Standard_Failure) {
-#else
- } CASCatch_CATCH(Standard_Failure) {
-#endif
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
f = 0.0;
ok = false;
myValues( 1, 1 )
{
bool ok = true;
-#ifdef NO_CAS_CATCH
try {
+#ifdef NO_CAS_CATCH
OCC_CATCH_SIGNALS;
-#else
- CASCatch_TRY {
#endif
myExpr = ExprIntrp_GenExp::Create();
myExpr->Process( ( Standard_CString )str );
-#ifdef NO_CAS_CATCH
} catch(Standard_Failure) {
-#else
- } CASCatch_CATCH(Standard_Failure) {
-#endif
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
ok = false;
}
( ( TColStd_Array1OfReal& )myValues ).ChangeValue( 1 ) = t;
bool ok = true;
-#ifdef NO_CAS_CATCH
try {
+#ifdef NO_CAS_CATCH
OCC_CATCH_SIGNALS;
-#else
- CASCatch_TRY {
#endif
f = myExpr->Expression()->Evaluate( myVars, myValues );
-#ifdef NO_CAS_CATCH
} catch(Standard_Failure) {
-#else
- } CASCatch_CATCH(Standard_Failure) {
-#endif
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
f = 0.0;
ok = false;
double FunctionExpr::integral( const double a, const double b ) const
{
double res = 0.0;
-#ifdef NO_CAS_CATCH
try {
+#ifdef NO_CAS_CATCH
OCC_CATCH_SIGNALS;
-#else
- CASCatch_TRY {
#endif
math_GaussSingleIntegration _int
( *static_cast<math_Function*>( const_cast<FunctionExpr*> (this) ), a, b, 20 );
if( _int.IsDone() )
res = _int.Value();
-#ifdef NO_CAS_CATCH
} catch(Standard_Failure) {
-#else
- } CASCatch_CATCH(Standard_Failure) {
-#endif
res = 0.0;
MESSAGE( "Exception in integral calculating" );
}
#ifdef NO_CAS_CATCH
#include <Standard_ErrorHandler.hxx>
-#else
-#include "CASCatch.hxx"
#endif
using namespace std;
double val = table[i*2+1];
if( _convMode==0 )
{
-#ifdef NO_CAS_CATCH
try {
+#ifdef NO_CAS_CATCH
OCC_CATCH_SIGNALS;
-#else
- CASCatch_TRY {
#endif
val = pow( 10.0, val );
-#ifdef NO_CAS_CATCH
} catch(Standard_Failure) {
-#else
- } CASCatch_CATCH(Standard_Failure) {
-#endif
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
throw SALOME_Exception( LOCALIZED( "invalid value"));
return;
{
bool parsed_ok = true;
Handle( ExprIntrp_GenExp ) myExpr;
-#ifdef NO_CAS_CATCH
try {
+#ifdef NO_CAS_CATCH
OCC_CATCH_SIGNALS;
-#else
- CASCatch_TRY {
#endif
myExpr = ExprIntrp_GenExp::Create();
myExpr->Process( str.ToCString() );
-#ifdef NO_CAS_CATCH
} catch(Standard_Failure) {
-#else
- } CASCatch_CATCH(Standard_Failure) {
-#endif
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
parsed_ok = false;
}
#ifdef NO_CAS_CATCH
#include <Standard_ErrorHandler.hxx>
-#else
-#include "CASCatch.hxx"
#endif
StdMeshersGUI_DistrPreview::StdMeshersGUI_DistrPreview( QWidget* p, StdMeshers::StdMeshers_NumberOfSegments_ptr h )
delete[] y;
x = y = 0;
-#ifdef NO_CAS_CATCH
try {
+#ifdef NO_CAS_CATCH
OCC_CATCH_SIGNALS;
-#else
- CASCatch_TRY {
#endif
replot();
-#ifdef NO_CAS_CATCH
} catch(Standard_Failure) {
-#else
- } CASCatch_CATCH(Standard_Failure) {
-#endif
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
}
}
bool StdMeshersGUI_DistrPreview::init( const QString& str )
{
bool parsed_ok = true;
-#ifdef NO_CAS_CATCH
try {
+#ifdef NO_CAS_CATCH
OCC_CATCH_SIGNALS;
-#else
- CASCatch_TRY {
#endif
myExpr = ExprIntrp_GenExp::Create();
myExpr->Process( ( Standard_CString ) str.latin1() );
-#ifdef NO_CAS_CATCH
} catch(Standard_Failure) {
-#else
- } CASCatch_CATCH(Standard_Failure) {
-#endif
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
parsed_ok = false;
}
double res = 0.0;
ok = true;
-#ifdef NO_CAS_CATCH
try {
+#ifdef NO_CAS_CATCH
OCC_CATCH_SIGNALS;
-#else
- CASCatch_TRY {
#endif
res = myExpr->Expression()->Evaluate( myVars, myValues );
-#ifdef NO_CAS_CATCH
} catch(Standard_Failure) {
-#else
- } CASCatch_CATCH(Standard_Failure) {
-#endif
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
ok = false;
res = 0.0;
{
case EXPONENT:
{
-#ifdef NO_CAS_CATCH
try {
+#ifdef NO_CAS_CATCH
OCC_CATCH_SIGNALS;
-#else
- CASCatch_TRY {
#endif
// in StdMeshers_NumberOfSegments.cc
// const double PRECISION = 1e-7;
//
if(v < -7) v = -7.0;
v = pow( 10.0, v );
-#ifdef NO_CAS_CATCH
} catch(Standard_Failure) {
-#else
- } CASCatch_CATCH(Standard_Failure) {
-#endif
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
v = 0.0;
ok = false;