const Standard_Boolean B)
{
if (S.IsNull()) {
- Standard_NullObject::Raise();
+ throw Standard_NullObject();
}
myShape = S;
myMap.Clear();
Handle(BRepCheck_Edge)::DownCast(aRes)->SetStatus(ste);
}
}
- catch(Standard_Failure)
- {
+ catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
cout<<"BRepCheck_Analyzer : ";
- Standard_Failure::Caught()->Print(cout);
+ anException.Print(cout);
cout<<endl;
#endif
+ (void)anException;
if ( ! myMap(S).IsNull() )
{
myMap(S)->SetFailStatus(S);
if (MapS.Add(aVertex))
myMap(aVertex)->InContext(S);
}
- catch(Standard_Failure)
- {
+ catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
cout<<"BRepCheck_Analyzer : ";
- Standard_Failure::Caught()->Print(cout);
+ anException.Print(cout);
cout<<endl;
#endif
+ (void)anException;
if ( ! myMap(S).IsNull() )
myMap(S)->SetFailStatus(S);
myMap(exp.Current())->InContext(S);
}
}
- catch(Standard_Failure)
- {
+ catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
cout<<"BRepCheck_Analyzer : ";
- Standard_Failure::Caught()->Print(cout);
+ anException.Print(cout);
cout<<endl;
#endif
+ (void)anException;
if ( ! myMap(S).IsNull() )
{
myMap(S)->SetFailStatus(S);
}
}
}
- catch(Standard_Failure)
- {
+ catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
cout<<"BRepCheck_Analyzer : ";
- Standard_Failure::Caught()->Print(cout);
+ anException.Print(cout);
cout<<endl;
#endif
+ (void)anException;
if ( ! myMap(S).IsNull() )
{
myMap(S)->SetFailStatus(S);
}
}
}
- catch(Standard_Failure)
- {
+ catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
cout<<"BRepCheck_Analyzer : ";
- Standard_Failure::Caught()->Print(cout);
+ anException.Print(cout);
cout<<endl;
#endif
+ (void)anException;
if ( ! myMap(S).IsNull() )
{
myMap(S)->SetFailStatus(S);
Handle(BRepCheck_Face)::DownCast(myMap(S))->SetUnorientable();
}
}
- catch(Standard_Failure)
- {
+ catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
cout<<"BRepCheck_Analyzer : ";
- Standard_Failure::Caught()->Print(cout);
+ anException.Print(cout);
cout<<endl;
#endif
+ (void)anException;
if ( ! myMap(S).IsNull() )
{
myMap(S)->SetFailStatus(S);
OCC_CATCH_SIGNALS
myMap(aShell)->InContext(S);
}
- catch(Standard_Failure)
- {
+ catch(Standard_Failure const& anException) {
#ifdef OCCT_DEBUG
cout<<"BRepCheck_Analyzer : ";
- Standard_Failure::Caught()->Print(cout);
+ anException.Print(cout);
cout<<endl;
#endif
+ (void)anException;
if ( ! myMap(S).IsNull() )
{
myMap(S)->SetFailStatus(S);