VISU::Storable* VISU::Mesh_i::Build(int theRestoring){
SALOMEDS::StudyBuilder_var aStudyBuilder = myStudy->NewBuilder();
aStudyBuilder->NewCommand(); // There is a transaction
- //try{
+ try{
if(myResult->GetInput() == NULL)
throw std::runtime_error("Mesh_i::Build - myResult->GetInput() == NULL !!!");
if(!theRestoring){
CORBA::String_var aString = GetID();
anIOR->SetValue(aString);
}
- //}catch(std::exception& exc){
- // INFOS("Follow exception was occured :\n"<<exc.what());
- // return NULL;
- //}catch(...){
- // INFOS("Unknown exception was occured!");
- // return NULL;
- //}
+ }catch(std::exception& exc){
+ INFOS("Follow exception was occured :\n"<<exc.what());
+ return NULL;
+ }catch(...){
+ INFOS("Unknown exception was occured!");
+ return NULL;
+ }
aStudyBuilder->CommitCommand();
return this;
}