mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0028550: Foundation Classes - fix empty message passed to thrown exception
This commit is contained in:
@@ -847,7 +847,8 @@ Standard_Real Geom2dAdaptor_Curve::Resolution(const Standard_Real Ruv) const {
|
||||
|
||||
gp_Lin2d Geom2dAdaptor_Curve::Line() const
|
||||
{
|
||||
Standard_NoSuchObject_Raise_if(myTypeCurve != GeomAbs_Line, "");
|
||||
Standard_NoSuchObject_Raise_if (myTypeCurve != GeomAbs_Line,
|
||||
"Geom2dAdaptor_Curve::Line() - curve is not a Line");
|
||||
return Handle(Geom2d_Line)::DownCast (myCurve)->Lin2d();
|
||||
}
|
||||
|
||||
@@ -858,7 +859,8 @@ gp_Lin2d Geom2dAdaptor_Curve::Line() const
|
||||
|
||||
gp_Circ2d Geom2dAdaptor_Curve::Circle() const
|
||||
{
|
||||
Standard_NoSuchObject_Raise_if(myTypeCurve != GeomAbs_Circle, "");
|
||||
Standard_NoSuchObject_Raise_if (myTypeCurve != GeomAbs_Circle,
|
||||
"Geom2dAdaptor_Curve::Circle() - curve is not a Circle");
|
||||
return Handle(Geom2d_Circle)::DownCast (myCurve)->Circ2d();
|
||||
}
|
||||
|
||||
@@ -869,7 +871,8 @@ gp_Circ2d Geom2dAdaptor_Curve::Circle() const
|
||||
|
||||
gp_Elips2d Geom2dAdaptor_Curve::Ellipse() const
|
||||
{
|
||||
Standard_NoSuchObject_Raise_if(myTypeCurve != GeomAbs_Ellipse, "");
|
||||
Standard_NoSuchObject_Raise_if (myTypeCurve != GeomAbs_Ellipse,
|
||||
"Geom2dAdaptor_Curve::Ellipse() - curve is not an Ellipse");
|
||||
return Handle(Geom2d_Ellipse)::DownCast (myCurve)->Elips2d();
|
||||
}
|
||||
|
||||
@@ -880,7 +883,8 @@ gp_Elips2d Geom2dAdaptor_Curve::Ellipse() const
|
||||
|
||||
gp_Hypr2d Geom2dAdaptor_Curve::Hyperbola() const
|
||||
{
|
||||
Standard_NoSuchObject_Raise_if(myTypeCurve != GeomAbs_Hyperbola, "");
|
||||
Standard_NoSuchObject_Raise_if (myTypeCurve != GeomAbs_Hyperbola,
|
||||
"Geom2dAdaptor_Curve::Hyperbola() - curve is not a Hyperbola");
|
||||
return Handle(Geom2d_Hyperbola)::DownCast (myCurve)->Hypr2d();
|
||||
}
|
||||
|
||||
@@ -891,7 +895,8 @@ gp_Hypr2d Geom2dAdaptor_Curve::Hyperbola() const
|
||||
|
||||
gp_Parab2d Geom2dAdaptor_Curve::Parabola() const
|
||||
{
|
||||
Standard_NoSuchObject_Raise_if(myTypeCurve != GeomAbs_Parabola, "");
|
||||
Standard_NoSuchObject_Raise_if (myTypeCurve != GeomAbs_Parabola,
|
||||
"Geom2dAdaptor_Curve::Parabola() - curve is not a Parabola");
|
||||
return Handle(Geom2d_Parabola)::DownCast (myCurve)->Parab2d();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user