0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / HLRBRep / HLRBRep_Hider.cxx
index 6162996..3054ec1 100644 (file)
@@ -696,13 +696,13 @@ void HLRBRep_Hider::Hide(const Standard_Integer FI,
 
     }
 
-    catch(Standard_Failure) {
+    catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
       cout << "An exception was catched when hiding edge " << E;
       cout << " by the face " << FI << endl;
-      Handle(Standard_Failure) fail = Standard_Failure::Caught();
-      cout << fail << endl;
+      cout << anException << endl;
 #endif
+      (void)anException;
     }
   }
 }