0001223: Dimensional constraint - Unknown C++ exception

This commit is contained in:
wmayer
2013-09-03 19:15:32 +02:00
parent a028c20293
commit 142ada62ca

View File

@@ -707,7 +707,13 @@ void GeomArcOfCircle::getRange(double& u, double& v) const
void GeomArcOfCircle::setRange(double u, double v)
{
myCurve->SetTrim(u, v);
try {
myCurve->SetTrim(u, v);
}
catch (Standard_Failure) {
Handle_Standard_Failure e = Standard_Failure::Caught();
throw Base::Exception(e->GetMessageString());
}
}
// Persistence implementer