From b76fd3b63db78003d5e14bc4fe6b13be2670422a Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 28 Nov 2006 11:42:21 +0000 Subject: [PATCH] try - catch is added --- src/VISU_I/VISU_ColoredPrs3d_i.cc | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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; } -- 2.39.2