//=======================================================================
static Standard_Integer OCC525(Draw_Interpretor& di, Standard_Integer /*argc*/, const char ** /*argv*/)
{
- try
+ GeomPlate_BuildPlateSurface aBuilder;
+ aBuilder.Perform();
+
+ if (aBuilder.IsDone())
{
- OCC_CATCH_SIGNALS
- GeomPlate_BuildPlateSurface aBuilder;
- aBuilder.Perform();
+ di << "Error in OCC525. Null result is expected.\n";
+ }
+ else
+ {
+ di << "OCC525 OK \n";
}
- catch (Standard_RangeError) { di << "OCC525 Exception \n" ;return 0; }
- //catch (...) { di << "OCC525 Exception \n" ;return 0; }
- di << "OCC525 OK \n";
return 0;
}