From: ouv Date: Tue, 28 Nov 2006 11:42:21 +0000 (+0000) Subject: try - catch is added X-Git-Tag: WP1_2_3_05-12-2006_cache_system~40 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b76fd3b63db78003d5e14bc4fe6b13be2670422a;p=modules%2Fvisu.git try - catch is added --- diff --git a/src/VISU_I/VISU_ColoredPrs3d_i.cc b/src/VISU_I/VISU_ColoredPrs3d_i.cc index 797a56d9..34429154 100644 --- a/src/VISU_I/VISU_ColoredPrs3d_i.cc +++ b/src/VISU_I/VISU_ColoredPrs3d_i.cc @@ -106,15 +106,21 @@ bool VISU::ColoredPrs3d_i ::SetInput() { - if(TSuperClass::SetInput()){ - if(CheckIsPossible()){ - if(OnSetInput()){ - if(Create(GetCMeshName(),GetEntity(),GetCFieldName(),GetTimeStampNumber())) + cout << "VISU::ColoredPrs3d_i::SetInput()" << endl; + try{ + if(TSuperClass::SetInput()){ + if(CheckIsPossible()){ + if(OnSetInput()){ + if(Create(GetCMeshName(),GetEntity(),GetCFieldName(),GetTimeStampNumber())) + return true; + }else return true; - }else - return true; + } } + }catch(...){ } + cout << "VISU::ColoredPrs3d_i::SetInput() finished" << endl; + return false; }