DBRep::Set (theNameStr, *(TopoDS_Shape*)theShapePtr);
return theNameStr;
}
- catch (Standard_Failure)
+ catch (Standard_Failure const& anException)
{
- return Standard_Failure::Caught()->GetMessageString();
+ return anException.GetMessageString();
}
}
DBRep::Set(theNameStr, aC);
return theNameStr;
}
- catch (Standard_Failure)
+ catch (Standard_Failure const& anException)
{
- return Standard_Failure::Caught()->GetMessageString();
+ return anException.GetMessageString();
}
}