QFileInfo aFileInfo(theFileName);
QString aTargetFileName = aFileInfo.filePath();
if(aTargetFileName.endsWith("_maitre.med")){
- myMultiprObj.create(theFileName);
- if (myMultiprObj.isValidDistributedMEDFile()) {
- aTargetFileName = myMultiprObj.getSequentialMEDFilename();
- SetInitFileName(aFileInfo.filePath().latin1());
- SetName(VISU::GenerateName(aFileInfo.fileName()).latin1(), false);
- myIsBuildParts = true;
+ try {
+ myMultiprObj.create(theFileName);
+ if ( myMultiprObj.isValidDistributedMEDFile() ) {
+ aTargetFileName = myMultiprObj.getSequentialMEDFilename();
+ SetInitFileName(aFileInfo.filePath().latin1());
+ SetName(VISU::GenerateName(aFileInfo.fileName()).latin1(), false);
+ myIsBuildParts = true;
+ }
+ }catch(std::exception& exc){
+ MSG(MYDEBUG,"Follow exception was occured in:\n"<<exc.what());
+ }catch(multipr::RuntimeException& exc){
+ std::ostringstream aStream;
+ exc.dump(aStream);
+ aStream<<ends;
+ MSG(MYDEBUG,"Follow exception was occured in:\n"<<aStream.str());
+ }catch(...){
+ MSG(MYDEBUG,"Unknown exception !!!");
}
}
return this;
}
}catch(std::exception& exc){
- INFOS("Follow exception was occured :\n"<<exc.what());
+ MSG(MYDEBUG,"Follow exception was occured in:\n"<<aStream.str());
}catch(...){
- INFOS("Unknown exception was occured!!!");
+ MSG(MYDEBUG,"Unknown exception !!!");
}
return NULL;
}