]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Generalize "Cancel Compute" mechanism to be able to report
authoreap <eap@opencascade.com>
Fri, 20 Jul 2012 16:12:39 +0000 (16:12 +0000)
committereap <eap@opencascade.com>
Fri, 20 Jul 2012 16:12:39 +0000 (16:12 +0000)
"Computation canceled" instead of "Algorithm failed" as failure reason

+  COMPERR_CANCELED       = -11  //!< compute canceled

src/SMESHUtils/SMESH_ComputeError.hxx

index a9a4b3a386911276def12dd8f9acddb12693fd8a..204427f088dc5275ac9f13d267caf7bc7a6348fb 100644 (file)
@@ -49,7 +49,8 @@ enum SMESH_ComputeErrorName
   COMPERR_MEMORY_PB      = -7,  //!< std::bad_alloc exception
   COMPERR_ALGO_FAILED    = -8,  //!< algo failed for some reason
   COMPERR_BAD_SHAPE      = -9,  //!< bad geometry
-  COMPERR_WARNING        = -10  //!< algo reports error but sub-mesh is computed anyway
+  COMPERR_WARNING        = -10, //!< algo reports error but sub-mesh is computed anyway
+  COMPERR_CANCELED       = -11  //!< compute canceled
 };
 
 // =============================================================
@@ -98,6 +99,7 @@ std::string SMESH_ComputeError::CommonName() const
   _case2char(COMPERR_ALGO_FAILED   );
   _case2char(COMPERR_BAD_SHAPE     );
   _case2char(COMPERR_WARNING       );
+  _case2char(COMPERR_CANCELED      );
   default:;
   }
   return "";