-// Return myName as text, to be used to dump errors in terminal
-std::string SMESH_ComputeError::CommonName() const
-{
- switch( myName ) {
- _case2char(COMPERR_OK );
- _case2char(COMPERR_BAD_INPUT_MESH );
- _case2char(COMPERR_STD_EXCEPTION );
- _case2char(COMPERR_OCC_EXCEPTION );
- _case2char(COMPERR_SLM_EXCEPTION );
- _case2char(COMPERR_EXCEPTION );
- _case2char(COMPERR_MEMORY_PB );
- _case2char(COMPERR_ALGO_FAILED );
- _case2char(COMPERR_BAD_SHAPE );
- _case2char(COMPERR_WARNING );
- _case2char(COMPERR_CANCELED );
- _case2char(COMPERR_NO_MESH_ON_SHAPE);
- _case2char(COMPERR_BAD_PARMETERS );
- default:;
- }
- return "";
-}
+ // Return the most severe error
+ static SMESH_ComputeErrorPtr Worst( SMESH_ComputeErrorPtr er1,
+ SMESH_ComputeErrorPtr er2 );
+};