// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
// File : VISU_MedConvertor.cxx
#include "MED_GaussUtils.hxx"
#include "MED_Utilities.hxx"
-#include "CASCatch.hxx"
+#include <Standard_Failure.hxx>
+#include <Standard_ErrorHandler.hxx>
#include <vtkCellType.h>
INITMSG(MYDEBUG,"- iTimeStamp = "<<iTimeStamp<<endl);
#ifndef _DEXCEPT_
- CASCatch_TRY{
- try{
+ try{
+ OCC_CATCH_SIGNALS;
#endif
MED::PTimeStampInfo aTimeStampInfo = aMed->GetPTimeStampInfo(aFieldInfo,
aMEntity,
}
}
#ifndef _DEXCEPT_
+ }catch(Standard_Failure){
+ Handle(Standard_Failure) aFail = Standard_Failure::Caught();
+ MSG(MYDEBUG,"Follow signal was occured in:\n"<<aFail->GetMessageString());
}catch(std::exception& exc){
MSG(MYDEBUG,"Follow exception was occured in:\n"<<exc.what());
}catch(...){
MSG(MYDEBUG,"Unknown exception !!!");
}
- }CASCatch_CATCH(Standard_Failure){
- Handle(Standard_Failure) aFail = Standard_Failure::Caught();
- MSG(MYDEBUG,"Follow signal was occured in:\n"<<aFail->GetMessageString());
- }
#endif
}
for(TInt iComp = 0; iComp <= aNbComp; iComp++){
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
// File : VISU_Gen_i.cc
#include <strstream>
#include "Utils_ExceptHandlers.hxx"
-#include "CASCatch.hxx"
+
+#include <Standard_Failure.hxx>
+#include <Standard_ErrorHandler.hxx>
using namespace std;
const char* theFieldName,
CORBA::Double theIteration)
{
- CASCatch_TRY{
#ifndef _DEXCEPT_
- try{
+ try{
+ OCC_CATCH_SIGNALS;
#endif
- if(theColoredPrs3d->Create(theMeshName,theEntity,theFieldName,int(theIteration)))
- return true;
+ if(theColoredPrs3d->Create(theMeshName,theEntity,theFieldName,int(theIteration)))
+ return true;
#ifndef _DEXCEPT_
- }catch(std::exception& exc){
- INFOS("Follow exception was occured :\n"<<exc.what());
- }catch(...){
- INFOS("Unknown exception was occured!");
- }
-#endif
- }CASCatch_CATCH(Standard_Failure) {
+ }catch(Standard_Failure) {
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
INFOS("Follow signal was occured :\n"<<aFail->GetMessageString());
+ }catch(std::exception& exc){
+ INFOS("Follow exception was occured :\n"<<exc.what());
+ }catch(...){
+ INFOS("Unknown exception was occured!");
}
+#endif
return false;
}
#include "SALOMEDSClient_AttributeComment.hxx"
#include "SALOMEDSClient_AttributeName.hxx"
-#include "CASCatch.hxx"
+
+#include <Standard_Failure.hxx>
+#include <Standard_ErrorHandler.hxx>
#include <qpixmap.h>
#include <qimage.h>
bool anIsCreated = false;
TPrs3d* aPresent = new TPrs3d(theResult, false);
- CASCatch_TRY{
- try{
- if(aPresent->Create(aMeshName.latin1(),anEntity,aFieldName.latin1(),aTimeStampId)){
- anIsCreated = true;
- theData.myPrs[aFrameId++] = aPresent;
- aMin = std::min(aPresent->GetMin(), aMin);
- aMax = std::max(aPresent->GetMax(), aMax);
- }
- }catch(std::exception& exc){
- INFOS("Follow exception was occured :\n"<<exc.what());
- }catch(...){
- INFOS("Unknown exception was occured!");
+ try{
+ OCC_CATCH_SIGNALS;
+ if(aPresent->Create(aMeshName.latin1(),anEntity,aFieldName.latin1(),aTimeStampId)){
+ anIsCreated = true;
+ theData.myPrs[aFrameId++] = aPresent;
+ aMin = std::min(aPresent->GetMin(), aMin);
+ aMax = std::max(aPresent->GetMax(), aMax);
}
- }CASCatch_CATCH(Standard_Failure) {
+ }catch(Standard_Failure) {
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
INFOS("Follow signal was occured :\n"<<aFail->GetMessageString());
+ }catch(std::exception& exc){
+ INFOS("Follow exception was occured :\n"<<exc.what());
+ }catch(...){
+ INFOS("Unknown exception was occured!");
}
if(!anIsCreated)
aPresent->_remove_ref();