]> SALOME platform Git repositories - plugins/acisplugin.git/commitdiff
Salome HOME
Switch to standard C++ exception mechanism
authorvsr <vsr@opencascade.com>
Thu, 16 Nov 2017 11:36:41 +0000 (14:36 +0300)
committervsr <vsr@opencascade.com>
Thu, 16 Nov 2017 11:36:41 +0000 (14:36 +0300)
src/ACISPlugin_IOperations.cxx

index 073f58e4dd71d4aba7f66ec1e5bbdd8b3cddaa87..4ae1044dfa2fc59ecc22ea3c761bafd3e3e8c61f 100644 (file)
@@ -94,9 +94,8 @@ void ACISPlugin_IOperations::ExportACIS( const Handle(GEOM_Object)      theOrigi
       return;
     }
   }
-  catch( Standard_Failure ) {
-    Handle(Standard_Failure) aFail = Standard_Failure::Caught();
-    SetErrorCode( aFail->GetMessageString() );
+  catch( Standard_Failure& aFail ) {
+    SetErrorCode( aFail.GetMessageString() );
     return;
   }
 
@@ -150,9 +149,8 @@ ACISPlugin_IOperations::ImportACIS( const TCollection_AsciiString& theFileName )
     // Greate material groups.
     //MakeMaterialGroups( anImported, aSeq );
   }
-  catch( Standard_Failure ) {
-    Handle(Standard_Failure) aFail = Standard_Failure::Caught();
-    SetErrorCode( aFail->GetMessageString() );
+  catch( Standard_Failure& aFail ) {
+    SetErrorCode( aFail.GetMessageString() );
     return NULL;
   }