1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0028550: Foundation Classes - fix empty message passed to thrown exception

This commit is contained in:
kgv 2017-04-18 18:58:12 +03:00 committed by bugmaster
parent e87d0237d8
commit 2d2b3d53b7
142 changed files with 519 additions and 422 deletions

View File

@ -633,8 +633,8 @@ Standard_Integer Adaptor2d_OffsetCurve::NbKnots() const
Handle(Geom2d_BezierCurve) Adaptor2d_OffsetCurve::Bezier() const
{
Standard_NoSuchObject_Raise_if
( myOffset != 0.0e0 || GetType() != GeomAbs_BezierCurve, "");
Standard_NoSuchObject_Raise_if (myOffset != 0.0e0 || GetType() != GeomAbs_BezierCurve,
"Adaptor2d_OffsetCurve::Bezier() - wrong curve type");
return myCurve->Bezier();
}
@ -646,10 +646,7 @@ Handle(Geom2d_BezierCurve) Adaptor2d_OffsetCurve::Bezier() const
Handle(Geom2d_BSplineCurve) Adaptor2d_OffsetCurve::BSpline() const
{
Standard_NoSuchObject_Raise_if
( myOffset != 0.0e0 || GetType() != GeomAbs_BSplineCurve, "");
Standard_NoSuchObject_Raise_if (myOffset != 0.0e0 || GetType() != GeomAbs_BSplineCurve,
"Adaptor2d_OffsetCurve::BSpline() - wrong curve type");
return myCurve->BSpline();
}

View File

@ -138,42 +138,34 @@ void AppParCurves_MultiPoint::Transform2d(const Standard_Integer CuIndex,
SetPoint2d(CuIndex, newP);
}
void AppParCurves_MultiPoint::SetPoint (const Standard_Integer Index,
const gp_Pnt& Point) {
Standard_OutOfRange_Raise_if((Index <= 0) || (Index > nbP), "");
Standard_OutOfRange_Raise_if ((Index <= 0) || (Index > nbP),
"AppParCurves_MultiPoint::SetPoint() - wrong index");
tabPoint->SetValue(Index, Point);
}
const gp_Pnt& AppParCurves_MultiPoint::Point (const Standard_Integer Index) const
{
Standard_OutOfRange_Raise_if((Index <= 0) || (Index > nbP), "");
Standard_OutOfRange_Raise_if ((Index <= 0) || (Index > nbP),
"AppParCurves_MultiPoint::Point() - wrong index");
return tabPoint->Value(Index);
}
void AppParCurves_MultiPoint::SetPoint2d (const Standard_Integer Index,
const gp_Pnt2d& Point)
{
Standard_OutOfRange_Raise_if((Index <= nbP) || (Index > nbP+nbP2d), "");
Standard_OutOfRange_Raise_if ((Index <= nbP) || (Index > nbP+nbP2d),
"AppParCurves_MultiPoint::SetPoint2d() - wrong index");
tabPoint2d->SetValue(Index-nbP, Point);
}
const gp_Pnt2d& AppParCurves_MultiPoint::Point2d (const Standard_Integer Index) const
{
Standard_OutOfRange_Raise_if((Index <= nbP) || (Index > nbP+nbP2d), "");
Standard_OutOfRange_Raise_if ((Index <= nbP) || (Index > nbP+nbP2d),
"AppParCurves_MultiPoint::Point2d() - wrong index");
return tabPoint2d->Value(Index-nbP);
}
void AppParCurves_MultiPoint::Dump(Standard_OStream& o) const
{

View File

@ -173,7 +173,7 @@ void BOPAlgo_Algo::UserBreak() const
return;
}
if (myProgressIndicator->UserBreak()) {
throw Standard_NotImplemented("");
throw Standard_NotImplemented ("BOPAlgo_Algo::UserBreak(), method is not implemented");
}
}
// myErrorStatus

View File

@ -111,7 +111,7 @@ void BRepAlgoAPI_Algo::UserBreak() const
return;
}
if (myProgressIndicator->UserBreak()) {
throw Standard_NotImplemented("");
throw Standard_NotImplemented ("BRepAlgoAPI_Algo::UserBreak(), method is not implemented");
}
}
//=======================================================================

View File

@ -106,6 +106,6 @@ const
const TopoDS_Shape& BRepFill_OffsetAncestors::Ancestor(const TopoDS_Edge& S1)
const
{
StdFail_NotDone_Raise_if( !myIsPerform, "");
StdFail_NotDone_Raise_if (!myIsPerform, "BRepFill_OffsetAncestors::Ancestor() - Perform() should be called before accessing results");
return myMap(S1);
}

View File

@ -122,7 +122,8 @@ void BRepOffsetAPI_DraftAngle::Add(const TopoDS_Face& F,
// POP-DPF : protection
if ( Abs(Angle) <= 1.e-04 )
return;
Standard_NullObject_Raise_if(myInitialShape.IsNull(),"");
Standard_NullObject_Raise_if (myInitialShape.IsNull(),
"BRepOffsetAPI_DraftAngle::Add() - initial shape is not set");
Handle(Draft_Modification)::DownCast (myModification)->Add(F,D,Angle,Plane, Flag);
}
@ -134,7 +135,8 @@ void BRepOffsetAPI_DraftAngle::Add(const TopoDS_Face& F,
Standard_Boolean BRepOffsetAPI_DraftAngle::AddDone () const
{
Standard_NullObject_Raise_if(myInitialShape.IsNull(),"");
Standard_NullObject_Raise_if (myInitialShape.IsNull(),
"BRepOffsetAPI_DraftAngle::AddDone() - initial shape is not set");
return Handle(Draft_Modification)::DownCast (myModification)
->ProblematicShape().IsNull();
}
@ -147,7 +149,8 @@ Standard_Boolean BRepOffsetAPI_DraftAngle::AddDone () const
void BRepOffsetAPI_DraftAngle::Remove(const TopoDS_Face& F)
{
Standard_NullObject_Raise_if(myInitialShape.IsNull(),"");
Standard_NullObject_Raise_if (myInitialShape.IsNull(),
"BRepOffsetAPI_DraftAngle::Remove() - initial shape is not set");
Handle(Draft_Modification)::DownCast (myModification)->Remove(F);
}
@ -159,7 +162,8 @@ void BRepOffsetAPI_DraftAngle::Remove(const TopoDS_Face& F)
const TopoDS_Shape& BRepOffsetAPI_DraftAngle::ProblematicShape () const
{
Standard_NullObject_Raise_if(myInitialShape.IsNull(),"");
Standard_NullObject_Raise_if (myInitialShape.IsNull(),
"BRepOffsetAPI_DraftAngle::ProblematicShape() - initial shape is not set");
return Handle(Draft_Modification)::DownCast (myModification)->ProblematicShape();
}
@ -171,7 +175,8 @@ const TopoDS_Shape& BRepOffsetAPI_DraftAngle::ProblematicShape () const
Draft_ErrorStatus BRepOffsetAPI_DraftAngle::Status () const
{
Standard_NullObject_Raise_if(myInitialShape.IsNull(),"");
Standard_NullObject_Raise_if (myInitialShape.IsNull(),
"BRepOffsetAPI_DraftAngle::Status() - initial shape is not set");
return Handle(Draft_Modification)::DownCast (myModification)->Error();
}
@ -184,7 +189,8 @@ Draft_ErrorStatus BRepOffsetAPI_DraftAngle::Status () const
const TopTools_ListOfShape& BRepOffsetAPI_DraftAngle::ConnectedFaces
(const TopoDS_Face& F) const
{
Standard_NullObject_Raise_if(myInitialShape.IsNull(),"");
Standard_NullObject_Raise_if (myInitialShape.IsNull(),
"BRepOffsetAPI_DraftAngle::ConnectedFaces() - initial shape is not set");
return Handle(Draft_Modification)::DownCast (myModification)->ConnectedFaces(F);
}
@ -196,7 +202,8 @@ const TopTools_ListOfShape& BRepOffsetAPI_DraftAngle::ConnectedFaces
const TopTools_ListOfShape& BRepOffsetAPI_DraftAngle::ModifiedFaces() const
{
Standard_NullObject_Raise_if(myInitialShape.IsNull(),"");
Standard_NullObject_Raise_if (myInitialShape.IsNull(),
"BRepOffsetAPI_DraftAngle::ModifiedFaces() - initial shape is not set");
return Handle(Draft_Modification)::DownCast (myModification)->ModifiedFaces();
}
@ -208,7 +215,8 @@ const TopTools_ListOfShape& BRepOffsetAPI_DraftAngle::ModifiedFaces() const
const TopTools_ListOfShape& BRepOffsetAPI_DraftAngle::Generated(const TopoDS_Shape& S)
{
myGenerated.Clear();
Standard_NullObject_Raise_if(myInitialShape.IsNull(),"");
Standard_NullObject_Raise_if (myInitialShape.IsNull(),
"BRepOffsetAPI_DraftAngle::Generated() - initial shape is not set");
Handle(Draft_Modification) DMod = Handle(Draft_Modification)::DownCast (myModification);
if (S.ShapeType() == TopAbs_FACE) {
@ -238,7 +246,8 @@ const TopTools_ListOfShape& BRepOffsetAPI_DraftAngle::Generated(const TopoDS_Sha
const TopTools_ListOfShape& BRepOffsetAPI_DraftAngle::Modified(const TopoDS_Shape& S)
{
myGenerated.Clear();
Standard_NullObject_Raise_if(myInitialShape.IsNull(),"");
Standard_NullObject_Raise_if (myInitialShape.IsNull(),
"BRepOffsetAPI_DraftAngle::Modified() - initial shape is not set");
Handle(Draft_Modification) DMod = Handle(Draft_Modification)::DownCast (myModification);
if (S.ShapeType() == TopAbs_FACE) {

View File

@ -31,7 +31,7 @@ inline Standard_Boolean CPnts_AbscissaPoint::IsDone() const
inline Standard_Real CPnts_AbscissaPoint::Parameter() const
{
StdFail_NotDone_Raise_if(!myDone, "");
StdFail_NotDone_Raise_if (!myDone, "CPnts_AbscissaPoint::Parameter() - no result");
return myParam;
}

View File

@ -32,7 +32,7 @@ inline Standard_Boolean CPnts_UniformDeflection::IsAllDone () const
inline void CPnts_UniformDeflection::Next()
{
Standard_OutOfRange_Raise_if(myIPoint >= myNbPoints, "");
Standard_OutOfRange_Raise_if(myIPoint >= myNbPoints, "CPnts_UniformDeflection::Next() - no more points available");
myIPoint++;
}
@ -43,7 +43,7 @@ inline void CPnts_UniformDeflection::Next()
inline Standard_Real CPnts_UniformDeflection::Value () const
{
StdFail_NotDone_Raise_if(!myDone, "");
StdFail_NotDone_Raise_if (!myDone, "CPnts_UniformDeflection::Value() - no result");
return myParams[myIPoint + 1];
}
//=======================================================================
@ -53,6 +53,6 @@ inline Standard_Real CPnts_UniformDeflection::Value () const
inline gp_Pnt CPnts_UniformDeflection::Point () const
{
StdFail_NotDone_Raise_if(!myDone, "");
StdFail_NotDone_Raise_if (!myDone, "CPnts_UniformDeflection::Point() - no result");
return myPoints[myIPoint + 1];
}

View File

@ -2864,7 +2864,7 @@ Standard_Integer ChFi3d_IndexOfSurfData(const TopoDS_Vertex& V1,
sens = -1;
if(CD->SetOfSurfData().IsNull()) return 0;
else if (Vref.IsSame(V1)) Index = CD->SetOfSurfData()->Length();
else throw Standard_ConstructionError("");
else throw Standard_ConstructionError ("ChFi3d_IndexOfSurfData() - wrong construction parameters");
}
return Index;
}
@ -2891,7 +2891,7 @@ TopoDS_Edge ChFi3d_EdgeFromV1(const TopoDS_Vertex& V1,
else Vref = TopExp::LastVertex(E1);
sens = -1;
if (Vref.IsSame(V1)) return E1;
else throw Standard_ConstructionError("");
else throw Standard_ConstructionError ("ChFi3d_IndexOfSurfData() - wrong construction parameters");
}
}
//=======================================================================
@ -3815,7 +3815,7 @@ void ChFi3d_Parameters(const Handle(Geom_Surface)& S,
{
GeomAPI_ProjectPointOnSurf tool(p3d,S);
if ( tool.NbPoints() != 1 )
throw StdFail_NotDone("");
throw StdFail_NotDone ("ChFi3d_Parameters() - no projection results");
else
tool.Parameters(1,u,v);
}
@ -3870,12 +3870,12 @@ void ChFi3d_TrimCurve(const Handle(Geom_Curve)& gc,
{
GeomAPI_ProjectPointOnCurve tool(FirstP,gc);
if ( tool.NbPoints() != 1 )
throw StdFail_NotDone("");
throw StdFail_NotDone ("ChFi3d_TrimCurve() - no projection results for the first point");
else
uf = tool.Parameter(1);
tool.Init(LastP,gc);
if ( tool.NbPoints() != 1 )
throw StdFail_NotDone("");
throw StdFail_NotDone ("ChFi3d_TrimCurve() - no projection results for the second point");
else
ul = tool.Parameter(1);
}

View File

@ -158,7 +158,7 @@ Standard_Boolean ChFi3d_Builder::IsDone() const
TopoDS_Shape ChFi3d_Builder::Shape()const
{
Standard_NoSuchObject_Raise_if(!done,"");
Standard_NoSuchObject_Raise_if (!done, "ChFi3d_Builder::Shape() - no result");
return myShapeResult;
}
@ -292,7 +292,7 @@ Standard_Boolean ChFi3d_Builder::HasResult() const
TopoDS_Shape ChFi3d_Builder::BadShape()const
{
Standard_NoSuchObject_Raise_if(!hasresult,"");
Standard_NoSuchObject_Raise_if (!hasresult, "ChFi3d_Builder::BadShape() - no result");
return badShape;
}

View File

@ -163,6 +163,7 @@ GC_MakeArcOfCircle::GC_MakeArcOfCircle(const gp_Circ& Circ ,
//=======================================================================
const Handle(Geom_TrimmedCurve)& GC_MakeArcOfCircle::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GC_MakeArcOfCircle::Value() - no result");
return TheArc;
}

View File

@ -58,6 +58,7 @@ GC_MakeArcOfEllipse::GC_MakeArcOfEllipse(const gp_Elips& Elips ,
const Handle(Geom_TrimmedCurve)& GC_MakeArcOfEllipse::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GC_MakeArcOfEllipse::Value() - no result");
return TheArc;
}

View File

@ -59,6 +59,7 @@ GC_MakeArcOfHyperbola::GC_MakeArcOfHyperbola(const gp_Hypr& Hypr ,
const Handle(Geom_TrimmedCurve)& GC_MakeArcOfHyperbola::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GC_MakeArcOfHyperbola::Value() - no result");
return TheArc;
}

View File

@ -58,6 +58,7 @@ GC_MakeArcOfParabola::GC_MakeArcOfParabola(const gp_Parab& Parab ,
const Handle(Geom_TrimmedCurve)& GC_MakeArcOfParabola::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GC_MakeArcOfParabola::Value() - no result");
return TheArc;
}

View File

@ -104,6 +104,7 @@ GC_MakeCircle::GC_MakeCircle(const gp_Ax1& Axis ,
const Handle(Geom_Circle)& GC_MakeCircle::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GC_MakeCircle::Value() - no result");
return TheCircle;
}

View File

@ -84,6 +84,7 @@ GC_MakeConicalSurface::GC_MakeConicalSurface(const gp_Pnt& P1 ,
const Handle(Geom_ConicalSurface)& GC_MakeConicalSurface::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GC_MakeConicalSurface::Value() - no result");
return TheCone;
}

View File

@ -105,6 +105,7 @@ GC_MakeCylindricalSurface::GC_MakeCylindricalSurface(const gp_Cylinder& Cyl ,
const Handle(Geom_CylindricalSurface)&
GC_MakeCylindricalSurface::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GC_MakeCylindricalSurface::Value() - no result");
return TheCylinder;
}

View File

@ -53,6 +53,7 @@ GC_MakeEllipse::GC_MakeEllipse(const gp_Pnt& S1 ,
const Handle(Geom_Ellipse)& GC_MakeEllipse::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GC_MakeEllipse::Value() - no result");
return TheEllipse;
}

View File

@ -52,6 +52,7 @@ GC_MakeHyperbola::GC_MakeHyperbola(const gp_Pnt& S1 ,
const Handle(Geom_Hyperbola)& GC_MakeHyperbola::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GC_MakeHyperbola::Value() - no result");
return TheHyperbola;
}

View File

@ -68,6 +68,7 @@ GC_MakeLine::GC_MakeLine(const gp_Lin& Lin ,
const Handle(Geom_Line)& GC_MakeLine::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GC_MakeLine::Value() - no result");
return TheLine;
}

View File

@ -120,6 +120,7 @@ GC_MakePlane::GC_MakePlane(const gp_Ax1& Axis ) {
const Handle(Geom_Plane)& GC_MakePlane::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GC_MakePlane::Value() - no result");
return ThePlane;
}

View File

@ -65,6 +65,7 @@ GC_MakeSegment::GC_MakeSegment(const gp_Lin& Line ,
const Handle(Geom_TrimmedCurve)& GC_MakeSegment::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GC_MakeSegment::Value() - no result");
return TheSegment;
}

View File

@ -74,6 +74,7 @@ GC_MakeTrimmedCone::GC_MakeTrimmedCone(const gp_Pnt& P1 ,
const Handle(Geom_RectangularTrimmedSurface)& GC_MakeTrimmedCone::
Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GC_MakeTrimmedCone::Value() - no result");
return TheCone;
}

View File

@ -74,6 +74,7 @@ GC_MakeTrimmedCylinder::GC_MakeTrimmedCylinder(const gp_Ax1& A1 ,
const Handle(Geom_RectangularTrimmedSurface)& GC_MakeTrimmedCylinder::
Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GC_MakeTrimmedCylinder::Value() - no result");
return TheCyl;
}

View File

@ -114,6 +114,7 @@ GCE2d_MakeArcOfCircle::GCE2d_MakeArcOfCircle(const gp_Circ2d& Circ ,
const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfCircle::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GCE2d_MakeArcOfCircle::Value() - no result");
return TheArc;
}

View File

@ -58,6 +58,7 @@ GCE2d_MakeArcOfEllipse::GCE2d_MakeArcOfEllipse(const gp_Elips2d& Elips ,
const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfEllipse::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GCE2d_MakeArcOfEllipse::Value() - no result");
return TheArc;
}

View File

@ -60,6 +60,7 @@ GCE2d_MakeArcOfHyperbola::
const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfHyperbola::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GCE2d_MakeArcOfHyperbola::Value() - no result");
return TheArc;
}

View File

@ -59,6 +59,7 @@ GCE2d_MakeArcOfParabola::
const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeArcOfParabola::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GCE2d_MakeArcOfParabola::Value() - no result");
return TheArc;
}

View File

@ -105,6 +105,7 @@ GCE2d_MakeCircle::GCE2d_MakeCircle(const gp_Pnt2d& Center ,
const Handle(Geom2d_Circle)& GCE2d_MakeCircle::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GCE2d_MakeCircle::Value() - no result");
return TheCircle;
}

View File

@ -65,6 +65,7 @@ GCE2d_MakeEllipse::GCE2d_MakeEllipse(const gp_Pnt2d& S1 ,
const Handle(Geom2d_Ellipse)& GCE2d_MakeEllipse::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GCE2d_MakeEllipse::Value() - no result");
return TheEllipse;
}

View File

@ -65,6 +65,7 @@ GCE2d_MakeHyperbola::GCE2d_MakeHyperbola(const gp_Pnt2d& S1 ,
const Handle(Geom2d_Hyperbola)& GCE2d_MakeHyperbola::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GCE2d_MakeHyperbola::Value() - no result");
return TheHyperbola;
}

View File

@ -78,6 +78,7 @@ GCE2d_MakeLine::GCE2d_MakeLine(const gp_Lin2d& Lin ,
const Handle(Geom2d_Line)& GCE2d_MakeLine::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GCE2d_MakeLine::Value() - no result");
return TheLine;
}

View File

@ -72,6 +72,7 @@ GCE2d_MakeParabola::GCE2d_MakeParabola(const gp_Pnt2d& S1 ,
const Handle(Geom2d_Parabola)& GCE2d_MakeParabola::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GCE2d_MakeParabola::Value() - no result");
return TheParabola;
}

View File

@ -82,6 +82,7 @@ GCE2d_MakeSegment::GCE2d_MakeSegment(const gp_Lin2d& Line ,
const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeSegment::Value() const
{
StdFail_NotDone_Raise_if(TheError != gce_Done,"");
StdFail_NotDone_Raise_if (TheError != gce_Done,
"GCE2d_MakeSegment::Value() - no result");
return TheSegment;
}

View File

@ -80,8 +80,10 @@ void GCPnts_QuasiUniformAbscissa::Initialize(const TheCurve& C,
// }
#endif
}
else {
Standard_ConstructionError_Raise_if(NbPoints <= 1, "");
else
{
Standard_ConstructionError_Raise_if (NbPoints <= 1,
"GCPnts_QuasiUniformAbscissa::Initialize() - number of points should be >= 2");
// evaluate the approximative length of the 3dCurve
myNbPoints = NbPoints;

View File

@ -392,7 +392,8 @@ void GCPnts_UniformAbscissa::Initialize(const TheCurve& C,
const Standard_Real U2,
const Standard_Real Tol)
{
Standard_ConstructionError_Raise_if(NbPoints <= 1, "");
Standard_ConstructionError_Raise_if (NbPoints <= 1,
"GCPnts_UniformAbscissa::Initialize() - number of points should be >= 2");
Standard_Real Abscissa ;
myNbPoints = 0 ;
myDone = Standard_False;

View File

@ -55,7 +55,8 @@ Handle(Geom_Geometry) Geom_Direction::Copy() const {
Geom_Direction::Geom_Direction (const Standard_Real X, const Standard_Real Y, const Standard_Real Z) {
Standard_Real D = sqrt (X * X + Y * Y + Z * Z);
Standard_ConstructionError_Raise_if (D <= gp::Resolution(), "");
Standard_ConstructionError_Raise_if (D <= gp::Resolution(),
"Geom_Direction() - input vector has zero length");
gpVec = gp_Vec (X/D, Y/D, Z/D);
}
@ -72,7 +73,8 @@ Standard_Real Geom_Direction::SquareMagnitude () const { return 1.0; }
void Geom_Direction::SetCoord (const Standard_Real X, const Standard_Real Y, const Standard_Real Z) {
Standard_Real D = Sqrt (X * X + Y * Y + Z * Z);
Standard_ConstructionError_Raise_if (D <= gp::Resolution(), "");
Standard_ConstructionError_Raise_if (D <= gp::Resolution(),
"Geom_Direction::SetCoord() - input vector has zero length");
gpVec = gp_Vec(X/D, Y/D, Z/D);
}
@ -80,7 +82,8 @@ void Geom_Direction::SetCoord (const Standard_Real X, const Standard_Real Y, con
void Geom_Direction::SetX (const Standard_Real X) {
Standard_Real D = Sqrt (X * X + gpVec.Y() * gpVec.Y() + gpVec.Z() * gpVec.Z());
Standard_ConstructionError_Raise_if (D <= gp::Resolution(), "");
Standard_ConstructionError_Raise_if (D <= gp::Resolution(),
"Geom_Direction::SetX() - input vector has zero length");
gpVec = gp_Vec (X/D, gpVec.Y()/D, gpVec.Z()/D);
}
@ -88,7 +91,8 @@ void Geom_Direction::SetX (const Standard_Real X) {
void Geom_Direction::SetY (const Standard_Real Y) {
Standard_Real D = Sqrt (gpVec.X() * gpVec.X() + Y * Y + gpVec.Z() * gpVec.Z());
Standard_ConstructionError_Raise_if (D <= gp::Resolution(), "");
Standard_ConstructionError_Raise_if (D <= gp::Resolution(),
"Geom_Direction::SetY() - input vector has zero length");
gpVec = gp_Vec (gpVec.X()/D, Y/D, gpVec.Z()/D);
}
@ -96,7 +100,8 @@ void Geom_Direction::SetY (const Standard_Real Y) {
void Geom_Direction::SetZ (const Standard_Real Z) {
Standard_Real D = Sqrt (gpVec.X() * gpVec.X() + gpVec.Y() * gpVec.Y() + Z * Z);
Standard_ConstructionError_Raise_if (D <= gp::Resolution(), "");
Standard_ConstructionError_Raise_if (D <= gp::Resolution(),
"Geom_Direction::SetZ() - input vector has zero length");
gpVec = gp_Vec (gpVec.X()/D, gpVec.Y()/D, Z/D);
}

View File

@ -50,7 +50,8 @@ Handle(Geom2d_Geometry) Geom2d_Direction::Copy() const {
Geom2d_Direction::Geom2d_Direction (const Standard_Real X, const Standard_Real Y) {
Standard_Real D = Sqrt (X * X + Y * Y);
Standard_ConstructionError_Raise_if (D <= gp::Resolution(), "");
Standard_ConstructionError_Raise_if (D <= gp::Resolution(),
"Geom2d_Direction() - input vector has zero length");
gpVec2d = gp_Vec2d (X/D, Y/D);
}
@ -61,7 +62,8 @@ Geom2d_Direction::Geom2d_Direction (const gp_Dir2d& V) { gpVec2d = V; }
void Geom2d_Direction::SetCoord (const Standard_Real X, const Standard_Real Y) {
Standard_Real D = Sqrt (X * X + Y * Y);
Standard_ConstructionError_Raise_if (D <= gp::Resolution(), "");
Standard_ConstructionError_Raise_if (D <= gp::Resolution(),
"Geom2d_Direction::SetCoord() - input vector has zero length");
gpVec2d = gp_Vec2d (X/D, Y/D);
}
@ -72,7 +74,8 @@ void Geom2d_Direction::SetDir2d (const gp_Dir2d& V) { gpVec2d = V; }
void Geom2d_Direction::SetX (const Standard_Real X) {
Standard_Real D = Sqrt(X * X + gpVec2d.Y() * gpVec2d.Y());
Standard_ConstructionError_Raise_if (D <= gp::Resolution(), "");
Standard_ConstructionError_Raise_if (D <= gp::Resolution(),
"Geom2d_Direction::SetX() - input vector has zero length");
gpVec2d = gp_Vec2d (X/D, gpVec2d.Y()/D);
}
@ -80,7 +83,8 @@ void Geom2d_Direction::SetX (const Standard_Real X) {
void Geom2d_Direction::SetY (const Standard_Real Y) {
Standard_Real D = Sqrt (gpVec2d.X() * gpVec2d.X() + Y * Y);
Standard_ConstructionError_Raise_if (D <= gp::Resolution(), "");
Standard_ConstructionError_Raise_if (D <= gp::Resolution(),
"Geom2d_Direction::SetY() - input vector has zero length");
gpVec2d = gp_Vec2d (gpVec2d.X()/D, Y/D);
}

View File

@ -317,7 +317,7 @@ void Geom2dAPI_PointsToBSpline::Init
const GeomAbs_Shape Continuity,
const Standard_Real Tol2D)
{
if (Params.Length() != Points.Length()) throw Standard_OutOfRange("");
if (Params.Length() != Points.Length()) throw Standard_OutOfRange ("Geom2dAPI_PointsToBSpline::Init() - invalid input");
Standard_Real Tol3D = 0.; // dummy argument for BSplineCompute.
Standard_Integer Nbp = Params.Length();

View File

@ -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();
}

View File

@ -191,7 +191,7 @@ void GeomAPI_PointsToBSpline::Init
const GeomAbs_Shape Continuity,
const Standard_Real Tol3D)
{
if (Params.Length() != Points.Length()) throw Standard_OutOfRange("");
if (Params.Length() != Points.Length()) throw Standard_OutOfRange ("GeomAPI_PointsToBSpline::Init() - invalid input");
Standard_Real Tol2D = 0.; // dummy argument for BSplineCompute.
Standard_Integer Nbp = Params.Length();

View File

@ -825,7 +825,8 @@ Standard_Real GeomAdaptor_Curve::Resolution(const Standard_Real R3D) const
gp_Lin GeomAdaptor_Curve::Line() const
{
Standard_NoSuchObject_Raise_if(myTypeCurve != GeomAbs_Line, "");
Standard_NoSuchObject_Raise_if (myTypeCurve != GeomAbs_Line,
"GeomAdaptor_Curve::Line() - curve is not a Line");
return Handle(Geom_Line)::DownCast (myCurve)->Lin();
}
@ -836,7 +837,8 @@ gp_Lin GeomAdaptor_Curve::Line() const
gp_Circ GeomAdaptor_Curve::Circle() const
{
Standard_NoSuchObject_Raise_if(myTypeCurve != GeomAbs_Circle, "");
Standard_NoSuchObject_Raise_if (myTypeCurve != GeomAbs_Circle,
"GeomAdaptor_Curve::Circle() - curve is not a Circle");
return Handle(Geom_Circle)::DownCast (myCurve)->Circ();
}
@ -847,7 +849,8 @@ gp_Circ GeomAdaptor_Curve::Circle() const
gp_Elips GeomAdaptor_Curve::Ellipse() const
{
Standard_NoSuchObject_Raise_if(myTypeCurve != GeomAbs_Ellipse, "");
Standard_NoSuchObject_Raise_if (myTypeCurve != GeomAbs_Ellipse,
"GeomAdaptor_Curve::Ellipse() - curve is not an Ellipse");
return Handle(Geom_Ellipse)::DownCast (myCurve)->Elips();
}
@ -858,7 +861,8 @@ gp_Elips GeomAdaptor_Curve::Ellipse() const
gp_Hypr GeomAdaptor_Curve::Hyperbola() const
{
Standard_NoSuchObject_Raise_if(myTypeCurve != GeomAbs_Hyperbola, "");
Standard_NoSuchObject_Raise_if (myTypeCurve != GeomAbs_Hyperbola,
"GeomAdaptor_Curve::Hyperbola() - curve is not a Hyperbola");
return Handle(Geom_Hyperbola)::DownCast (myCurve)->Hypr();
}
@ -869,7 +873,8 @@ gp_Hypr GeomAdaptor_Curve::Hyperbola() const
gp_Parab GeomAdaptor_Curve::Parabola() const
{
Standard_NoSuchObject_Raise_if(myTypeCurve != GeomAbs_Parabola, "");
Standard_NoSuchObject_Raise_if (myTypeCurve != GeomAbs_Parabola,
"GeomAdaptor_Curve::Parabola() - curve is not a Parabola");
return Handle(Geom_Parabola)::DownCast (myCurve)->Parab();
}

View File

@ -341,7 +341,7 @@ Handle(Geom_BSplineSurface) GeomConvert::SurfaceToBSplineSurface
Precision::IsPositiveInfinite(ULast) ||
Precision::IsNegativeInfinite(VFirst) ||
Precision::IsPositiveInfinite(VLast) ) {
throw Standard_DomainError("");
throw Standard_DomainError ("GeomConvert::SurfaceToBSplineSurface() - infinite surface");
}
Handle(Geom_BSplineSurface) TheSurface;

View File

@ -125,7 +125,7 @@ inline GeomInt_IntSS::GeomInt_IntSS ()
//=======================================================================
inline Standard_Integer GeomInt_IntSS::NbBoundaries () const
{
StdFail_NotDone_Raise_if(!myIntersector.IsDone(),"");
StdFail_NotDone_Raise_if (!myIntersector.IsDone(), "GeomInt_IntSS::NbBoundaries() - no result");
return myNbrestr;
}

View File

@ -77,6 +77,6 @@ GeomToStep_MakeAxis1Placement::GeomToStep_MakeAxis1Placement
const Handle(StepGeom_Axis1Placement) &
GeomToStep_MakeAxis1Placement::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeAxis1Placement::Value() - no result");
return theAxis1Placement;
}

View File

@ -109,6 +109,6 @@ GeomToStep_MakeAxis2Placement2d::GeomToStep_MakeAxis2Placement2d
const Handle(StepGeom_Axis2Placement2d) &
GeomToStep_MakeAxis2Placement2d::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeAxis2Placement2d::Value() - no result");
return theAxis2Placement2d;
}

View File

@ -134,6 +134,6 @@ GeomToStep_MakeAxis2Placement3d::GeomToStep_MakeAxis2Placement3d
const Handle(StepGeom_Axis2Placement3d) &
GeomToStep_MakeAxis2Placement3d::Value() const
{
StdFail_NotDone_Raise_if(!done,"");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeAxis2Placement3d::Value() - no result");
return theAxis2Placement3d;
}

View File

@ -66,6 +66,6 @@ GeomToStep_MakeBSplineCurveWithKnots::
const Handle(StepGeom_BSplineCurveWithKnots) &
GeomToStep_MakeBSplineCurveWithKnots::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeBSplineCurveWithKnots::Value() - no result");
return theBSplineCurveWithKnots;
}

View File

@ -66,6 +66,6 @@ GeomToStep_MakeBSplineCurveWithKnotsAndRationalBSplineCurve::
const Handle(StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve) &
GeomToStep_MakeBSplineCurveWithKnotsAndRationalBSplineCurve::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeBSplineCurveWithKnotsAndRationalBSplineCurve::Value() - no result");
return theBSplineCurveWithKnotsAndRationalBSplineCurve;
}

View File

@ -148,6 +148,6 @@ GeomToStep_MakeBSplineSurfaceWithKnots::
const Handle(StepGeom_BSplineSurfaceWithKnots) &
GeomToStep_MakeBSplineSurfaceWithKnots::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeBSplineSurfaceWithKnots::Value() - no result");
return theBSplineSurfaceWithKnots;
}

View File

@ -159,6 +159,6 @@ GeomToStep_MakeBSplineSurfaceWithKnotsAndRationalBSplineSurface::
const Handle(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface) &
GeomToStep_MakeBSplineSurfaceWithKnotsAndRationalBSplineSurface::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeBSplineSurfaceWithKnotsAndRationalBSplineSurface::Value() - no result");
return theBSplineSurfaceWithKnotsAndRationalBSplineSurface;
}

View File

@ -123,6 +123,6 @@ GeomToStep_MakeBoundedCurve::GeomToStep_MakeBoundedCurve ( const Handle(Geom2d_B
const Handle(StepGeom_BoundedCurve) &
GeomToStep_MakeBoundedCurve::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeBoundedCurve::Value() - no result");
return theBoundedCurve;
}

View File

@ -90,6 +90,6 @@ GeomToStep_MakeBoundedSurface::GeomToStep_MakeBoundedSurface
const Handle(StepGeom_BoundedSurface) &
GeomToStep_MakeBoundedSurface::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeBoundedSurface::Value() - no result");
return theBoundedSurface;
}

View File

@ -123,6 +123,6 @@ GeomToStep_MakeCartesianPoint::
const Handle(StepGeom_CartesianPoint) &
GeomToStep_MakeCartesianPoint::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeCartesianPoint::Value() - no result");
return theCartesianPoint;
}

View File

@ -84,6 +84,6 @@ GeomToStep_MakeCircle::GeomToStep_MakeCircle( const Handle(Geom2d_Circle)& Cer)
const Handle(StepGeom_Circle) &
GeomToStep_MakeCircle::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeCircle::Value() - no result");
return theCircle;
}

View File

@ -115,6 +115,6 @@ GeomToStep_MakeConic::GeomToStep_MakeConic ( const Handle(Geom2d_Conic)& C)
const Handle(StepGeom_Conic) &
GeomToStep_MakeConic::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeConic::Value() - no result");
return theConic;
}

View File

@ -58,6 +58,6 @@ GeomToStep_MakeConicalSurface::GeomToStep_MakeConicalSurface
const Handle(StepGeom_ConicalSurface) &
GeomToStep_MakeConicalSurface::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeConicalSurface::Value() - no result");
return theConicalSurface;
}

View File

@ -174,6 +174,6 @@ GeomToStep_MakeCurve::GeomToStep_MakeCurve ( const Handle(Geom2d_Curve)& C)
const Handle(StepGeom_Curve) &
GeomToStep_MakeCurve::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeCurve::Value() - no result");
return theCurve;
}

View File

@ -53,6 +53,6 @@ GeomToStep_MakeCylindricalSurface::GeomToStep_MakeCylindricalSurface
const Handle(StepGeom_CylindricalSurface) &
GeomToStep_MakeCylindricalSurface::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeCylindricalSurface::Value() - no result");
return theCylindricalSurface;
}

View File

@ -115,6 +115,6 @@ GeomToStep_MakeDirection::GeomToStep_MakeDirection
const Handle(StepGeom_Direction) &
GeomToStep_MakeDirection::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeDirection::Value() - no result");
return theDirection;
}

View File

@ -84,6 +84,6 @@ GeomToStep_MakeElementarySurface::GeomToStep_MakeElementarySurface
const Handle(StepGeom_ElementarySurface) &
GeomToStep_MakeElementarySurface::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeElementarySurface::Value() - no result");
return theElementarySurface;
}

View File

@ -85,6 +85,6 @@ GeomToStep_MakeEllipse::GeomToStep_MakeEllipse( const Handle(Geom2d_Ellipse)& Ce
const Handle(StepGeom_Ellipse) &
GeomToStep_MakeEllipse::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeEllipse::Value() - no result");
return theEllipse;
}

View File

@ -84,7 +84,7 @@ GeomToStep_MakeHyperbola::GeomToStep_MakeHyperbola(const Handle(Geom2d_Hyperbola
const Handle(StepGeom_Hyperbola)& GeomToStep_MakeHyperbola::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeHyperbola::Value() - no result");
return theHyperbola;
}

View File

@ -84,7 +84,7 @@ GeomToStep_MakeLine::GeomToStep_MakeLine ( const Handle(Geom2d_Line)& Gline)
const Handle(StepGeom_Line) &
GeomToStep_MakeLine::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeLine::Value() - no result");
return theLine;
}

View File

@ -81,7 +81,7 @@ GeomToStep_MakeParabola::GeomToStep_MakeParabola(const Handle(Geom2d_Parabola)&
const Handle(StepGeom_Parabola)& GeomToStep_MakeParabola::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeParabola::Value() - no result");
return theParabola;
}

View File

@ -70,7 +70,7 @@ GeomToStep_MakePlane::GeomToStep_MakePlane( const Handle(Geom_Plane)& Gpln)
const Handle(StepGeom_Plane) &
GeomToStep_MakePlane::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakePlane::Value() - no result");
return thePlane;
}

View File

@ -51,6 +51,6 @@ GeomToStep_MakePolyline::GeomToStep_MakePolyline( const TColgp_Array1OfPnt2d& P)
const Handle(StepGeom_Polyline) &
GeomToStep_MakePolyline::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakePolyline::Value() - no result");
return thePolyline;
}

View File

@ -103,6 +103,6 @@ GeomToStep_MakeRectangularTrimmedSurface::
const Handle(StepGeom_RectangularTrimmedSurface) &
GeomToStep_MakeRectangularTrimmedSurface::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeRectangularTrimmedSurface::Value() - no result");
return theRectangularTrimmedSurface;
}

View File

@ -53,6 +53,6 @@ GeomToStep_MakeSphericalSurface::GeomToStep_MakeSphericalSurface
const Handle(StepGeom_SphericalSurface) &
GeomToStep_MakeSphericalSurface::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeSphericalSurface::Value() - no result");
return theSphericalSurface;
}

View File

@ -85,6 +85,6 @@ GeomToStep_MakeSurface::GeomToStep_MakeSurface ( const Handle(Geom_Surface)& S)
const Handle(StepGeom_Surface) &
GeomToStep_MakeSurface::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeSurface::Value() - no result");
return theSurface;
}

View File

@ -58,6 +58,6 @@ GeomToStep_MakeSurfaceOfLinearExtrusion::GeomToStep_MakeSurfaceOfLinearExtrusion
const Handle(StepGeom_SurfaceOfLinearExtrusion) &
GeomToStep_MakeSurfaceOfLinearExtrusion::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeSurfaceOfLinearExtrusion::Value() - no result");
return theSurfaceOfLinearExtrusion;
}

View File

@ -56,6 +56,6 @@ GeomToStep_MakeSurfaceOfRevolution::GeomToStep_MakeSurfaceOfRevolution
const Handle(StepGeom_SurfaceOfRevolution) &
GeomToStep_MakeSurfaceOfRevolution::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeSurfaceOfRevolution::Value() - no result");
return theSurfaceOfRevolution;
}

View File

@ -59,6 +59,6 @@ GeomToStep_MakeSweptSurface::GeomToStep_MakeSweptSurface
const Handle(StepGeom_SweptSurface) &
GeomToStep_MakeSweptSurface::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeSweptSurface::Value() - no result");
return theSweptSurface;
}

View File

@ -54,6 +54,6 @@ GeomToStep_MakeToroidalSurface::GeomToStep_MakeToroidalSurface
const Handle(StepGeom_ToroidalSurface) &
GeomToStep_MakeToroidalSurface::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeToroidalSurface::Value() - no result");
return theToroidalSurface;
}

View File

@ -83,6 +83,6 @@ GeomToStep_MakeVector::GeomToStep_MakeVector ( const Handle(Geom2d_Vector)&
const Handle(StepGeom_Vector) &
GeomToStep_MakeVector::Value() const
{
StdFail_NotDone_Raise_if(!done, "");
StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeVector::Value() - no result");
return theVector;
}

View File

@ -140,7 +140,8 @@ public:
Standard_Real MaxStep(Standard_Integer theIndex)
{
Standard_OutOfRange_Raise_if((theIndex < 0) || (theIndex > 3), "");
Standard_OutOfRange_Raise_if ((theIndex < 0) || (theIndex > 3),
"IntWalk_PWalking::MaxStep() - index is out of range");
return pasInit[theIndex];
}

View File

@ -47,7 +47,7 @@ LProp_CLProps::LProp_CLProps (const Standard_Integer N,
: myU(RealLast()), myDerOrder(N), myCN(0), myLinTol(Resolution),
myTangentStatus (LProp_Undecided)
{
Standard_OutOfRange_Raise_if (N < 0 || N > 3, "");
Standard_OutOfRange_Raise_if (N < 0 || N > 3, "LProp_CLProps() - invalid input");
}
void LProp_CLProps::SetParameter(const Standard_Real U)

View File

@ -365,8 +365,9 @@ void NCollection_BaseSequence::RemoveSeq
void NCollection_BaseSequence::RemoveSeq (const Standard_Integer theIndex,
NCollection_DelSeqNode fDel)
{
Standard_OutOfRange_Raise_if (theIndex <= 0 || theIndex > mySize, "");
Standard_OutOfRange_Raise_if (theIndex <= 0 || theIndex > mySize,
"NCollection_BaseSequence::RemoveSeq() - index is out of range");
NCollection_SeqNode * p = Find (theIndex);
if (p->Previous())
p->Previous()->SetNext (p->Next());
@ -399,7 +400,8 @@ void NCollection_BaseSequence::RemoveSeq (const Standard_Integer From,
const Standard_Integer To,
NCollection_DelSeqNode fDel)
{
Standard_OutOfRange_Raise_if (From <= 0 || To > mySize || From > To, "");
Standard_OutOfRange_Raise_if (From <= 0 || To > mySize || From > To,
"NCollection_BaseSequence::RemoveSeq() - invalid input range");
NCollection_SeqNode * pfrom = Find(From);
NCollection_SeqNode * pto = Find(To);

View File

@ -363,7 +363,7 @@ static gp_Pnt2d Function_Value(const Standard_Real theU,
}
else
{
throw Standard_NoSuchObject("");
throw Standard_NoSuchObject ("ProjLib_ComputeApproxOnPolarSurface::ProjectUsingInitialCurve2d() - unknown surface type");
}
// Try to run simple search with initial point (U0, V0).

View File

@ -984,7 +984,7 @@ ProjLib_ProjectOnPlane::Trim(const Standard_Real First,
return myResult->Trim(First,Last,Tolerance) ;
}
else {
throw Standard_NotImplemented("");
throw Standard_NotImplemented ("ProjLib_ProjectOnPlane::Trim() - curve of unsupported type");
}
}

View File

@ -786,7 +786,7 @@ Standard_Real ProjLib_ProjectedCurve::LastParameter() const
GeomAbs_Shape ProjLib_ProjectedCurve::Continuity() const
{
throw Standard_NotImplemented("");
throw Standard_NotImplemented ("ProjLib_ProjectedCurve::Continuity() - method is not implemented");
}
@ -797,7 +797,7 @@ GeomAbs_Shape ProjLib_ProjectedCurve::Continuity() const
Standard_Integer ProjLib_ProjectedCurve::NbIntervals(const GeomAbs_Shape ) const
{
throw Standard_NotImplemented("");
throw Standard_NotImplemented ("ProjLib_ProjectedCurve::NbIntervals() - method is not implemented");
}
@ -810,7 +810,7 @@ Standard_Integer ProjLib_ProjectedCurve::NbIntervals(const GeomAbs_Shape ) const
void ProjLib_ProjectedCurve::Intervals(TColStd_Array1OfReal& ,
const GeomAbs_Shape ) const
{
throw Standard_NotImplemented("");
throw Standard_NotImplemented ("ProjLib_ProjectedCurve::Intervals() - method is not implemented");
}
@ -821,7 +821,7 @@ void ProjLib_ProjectedCurve::Intervals(TColStd_Array1OfReal& ,
Standard_Boolean ProjLib_ProjectedCurve::IsClosed() const
{
throw Standard_NotImplemented("");
throw Standard_NotImplemented ("ProjLib_ProjectedCurve::IsClosed() - method is not implemented");
}
@ -843,7 +843,7 @@ Standard_Boolean ProjLib_ProjectedCurve::IsPeriodic() const
Standard_Real ProjLib_ProjectedCurve::Period() const
{
throw Standard_NotImplemented("");
throw Standard_NotImplemented ("ProjLib_ProjectedCurve::Period() - method is not implemented");
}
@ -854,7 +854,7 @@ Standard_Real ProjLib_ProjectedCurve::Period() const
gp_Pnt2d ProjLib_ProjectedCurve::Value(const Standard_Real ) const
{
throw Standard_NotImplemented("");
throw Standard_NotImplemented ("ProjLib_ProjectedCurve::Value() - method is not implemented");
}
@ -865,7 +865,7 @@ gp_Pnt2d ProjLib_ProjectedCurve::Value(const Standard_Real ) const
void ProjLib_ProjectedCurve::D0(const Standard_Real , gp_Pnt2d& ) const
{
throw Standard_NotImplemented("");
throw Standard_NotImplemented ("ProjLib_ProjectedCurve::D0() - method is not implemented");
}
@ -878,7 +878,7 @@ void ProjLib_ProjectedCurve::D1(const Standard_Real ,
gp_Pnt2d& ,
gp_Vec2d& ) const
{
throw Standard_NotImplemented("");
throw Standard_NotImplemented ("ProjLib_ProjectedCurve::D1() - method is not implemented");
}
@ -892,7 +892,7 @@ void ProjLib_ProjectedCurve::D2(const Standard_Real ,
gp_Vec2d& ,
gp_Vec2d& ) const
{
throw Standard_NotImplemented("");
throw Standard_NotImplemented ("ProjLib_ProjectedCurve::D2() - method is not implemented");
}
@ -907,7 +907,7 @@ void ProjLib_ProjectedCurve::D3(const Standard_Real,
gp_Vec2d&,
gp_Vec2d&) const
{
throw Standard_NotImplemented("");
throw Standard_NotImplemented ("ProjLib_ProjectedCurve::D3() - method is not implemented");
}
@ -919,7 +919,7 @@ void ProjLib_ProjectedCurve::D3(const Standard_Real,
gp_Vec2d ProjLib_ProjectedCurve::DN(const Standard_Real,
const Standard_Integer) const
{
throw Standard_NotImplemented("");
throw Standard_NotImplemented ("ProjLib_ProjectedCurve::DN() - method is not implemented");
}
@ -930,7 +930,7 @@ gp_Vec2d ProjLib_ProjectedCurve::DN(const Standard_Real,
Standard_Real ProjLib_ProjectedCurve::Resolution(const Standard_Real) const
{
throw Standard_NotImplemented("");
throw Standard_NotImplemented ("ProjLib_ProjectedCurve::Resolution() - method is not implemented");
}
@ -1110,6 +1110,5 @@ Handle(Adaptor2d_HCurve2d) ProjLib_ProjectedCurve::Trim
const Standard_Real ,
const Standard_Real ) const
{
throw Standard_NotImplemented("");
throw Standard_NotImplemented ("ProjLib_ProjectedCurve::Trim() - method is not implemented");
}

View File

@ -861,7 +861,7 @@ void StepToTopoDS_Builder::Init
const TopoDS_Shape& StepToTopoDS_Builder::Value() const
{
StdFail_NotDone_Raise_if(!done,"");
StdFail_NotDone_Raise_if (!done, "StepToTopoDS_Builder::Value() - no result");
return myResult;
}

View File

@ -509,7 +509,7 @@ Handle(Geom2d_Curve) StepToTopoDS_TranslateEdge::MakePCurve
const TopoDS_Shape& StepToTopoDS_TranslateEdge::Value() const
{
StdFail_NotDone_Raise_if(!done,"");
StdFail_NotDone_Raise_if (!done, "StepToTopoDS_TranslateEdge::Value() - no result");
return myResult;
}

View File

@ -696,7 +696,7 @@ void StepToTopoDS_TranslateEdgeLoop::Init(const Handle(StepShape_FaceBound)& Fac
const TopoDS_Shape& StepToTopoDS_TranslateEdgeLoop::Value() const
{
StdFail_NotDone_Raise_if(!done,"");
StdFail_NotDone_Raise_if (!done, "StepToTopoDS_TranslateEdgeLoop::Value() - no result");
return myResult;
}

View File

@ -378,7 +378,7 @@ void StepToTopoDS_TranslateFace::Init
const TopoDS_Shape& StepToTopoDS_TranslateFace::Value() const
{
StdFail_NotDone_Raise_if(!done,"");
StdFail_NotDone_Raise_if (!done, "StepToTopoDS_TranslateFace::Value() - no result");
return myResult;
}

View File

@ -182,7 +182,7 @@ void StepToTopoDS_TranslatePolyLoop::Init(const Handle(StepShape_PolyLoop)& PL,
const TopoDS_Shape& StepToTopoDS_TranslatePolyLoop::Value() const
{
StdFail_NotDone_Raise_if(!done,"");
StdFail_NotDone_Raise_if (!done, "StepToTopoDS_TranslatePolyLoop::Value() - no result");
return myResult;
}

View File

@ -123,7 +123,7 @@ void StepToTopoDS_TranslateShell::Init
const TopoDS_Shape& StepToTopoDS_TranslateShell::Value() const
{
StdFail_NotDone_Raise_if(!done,"");
StdFail_NotDone_Raise_if (!done, "StepToTopoDS_TranslateShell::Value() - no result");
return myResult;
}

View File

@ -125,7 +125,7 @@ void StepToTopoDS_TranslateVertex::Init(const Handle(StepShape_Vertex)& aVertex,
const TopoDS_Shape& StepToTopoDS_TranslateVertex::Value() const
{
StdFail_NotDone_Raise_if(!done,"");
StdFail_NotDone_Raise_if (!done, "StepToTopoDS_TranslateVertex::Value() - no result");
return myResult;
}

View File

@ -112,7 +112,7 @@ void StepToTopoDS_TranslateVertexLoop::Init(const Handle(StepShape_VertexLoop)&
const TopoDS_Shape& StepToTopoDS_TranslateVertexLoop::Value() const
{
StdFail_NotDone_Raise_if(!done,"");
StdFail_NotDone_Raise_if (!done, "StepToTopoDS_TranslateVertexLoop::Value() - no result");
return myResult;
}

View File

@ -88,7 +88,7 @@ void TCollection_Sequence::Prepend(const SeqItem& T)
void TCollection_Sequence::InsertAfter(const Standard_Integer Index,
const SeqItem& T)
{
Standard_OutOfRange_Raise_if ( Index < 0 || Index > Size, "");
Standard_OutOfRange_Raise_if (Index < 0 || Index > Size, "TCollection_Sequence::InsertAfter() - index is out of range");
TCollection_SequenceNode* newnode = new TCollection_SequenceNode(T,(TCollection_SeqNode*)0L,(TCollection_SeqNode*)0L);
PInsertAfter (Index,(void*)newnode);
}
@ -99,7 +99,7 @@ void TCollection_Sequence::InsertAfter(const Standard_Integer Index,
// ----------------------------------------------------
const SeqItem& TCollection_Sequence::First() const
{
Standard_NoSuchObject_Raise_if(Size == 0,"");
Standard_NoSuchObject_Raise_if (Size == 0, "TCollection_Sequence::First() - sequence is empty");
return ((TCollection_SequenceNode*) FirstItem)->Value();
}
@ -109,7 +109,7 @@ const SeqItem& TCollection_Sequence::First() const
// ----------------------------------------------------
const SeqItem& TCollection_Sequence::Last() const
{
Standard_NoSuchObject_Raise_if(Size == 0,"");
Standard_NoSuchObject_Raise_if (Size == 0, "TCollection_Sequence::Last() - sequence is empty");
return ((TCollection_SequenceNode*) LastItem)->Value();
}
@ -118,7 +118,7 @@ const SeqItem& TCollection_Sequence::Last() const
// -----------------------------------------
const SeqItem& TCollection_Sequence::Value(const Standard_Integer Index) const
{
Standard_OutOfRange_Raise_if(Index <= 0 || Index > Size,"");
Standard_OutOfRange_Raise_if (Index <= 0 || Index > Size, "TCollection_Sequence::Value() - index is out of range");
TCollection_Sequence* const aLocalTHIS = (TCollection_Sequence* const) this;
aLocalTHIS->CurrentItem = (TCollection_SequenceNode*) Find(Index);
aLocalTHIS->CurrentIndex = Index;
@ -130,7 +130,7 @@ const SeqItem& TCollection_Sequence::Value(const Standard_Integer Index) const
// -------------------------------------------------------
SeqItem & TCollection_Sequence::ChangeValue(const Standard_Integer Index)
{
Standard_OutOfRange_Raise_if(Index <= 0 || Index > Size,"");
Standard_OutOfRange_Raise_if (Index <= 0 || Index > Size, "TCollection_Sequence::ChangeValue() - index is out of range");
CurrentItem = (TCollection_SequenceNode*) Find(Index);
CurrentIndex = Index;

View File

@ -61,7 +61,7 @@ void TDocStd_XLinkIterator::Initialize(const Handle(TDocStd_Document)& DOC)
void TDocStd_XLinkIterator::Next()
{
if (myValue == NULL) throw Standard_NoMoreObject("");
if (myValue == NULL) throw Standard_NoMoreObject ("TDocStd_XLinkIterator::Next() - no more values available");
else myValue = myValue->Next();
}

View File

@ -204,7 +204,7 @@ void TopoDSToStep_Builder::Init(const TopoDS_Shape& aShape,
const Handle(StepShape_TopologicalRepresentationItem)&
TopoDSToStep_Builder::Value() const
{
StdFail_NotDone_Raise_if(!done,"");
StdFail_NotDone_Raise_if (!done, "TopoDSToStep_Builder::Value() - no result");
return myResult;
}

View File

@ -162,6 +162,6 @@ TopoDSToStep_MakeBrepWithVoids::
const Handle(StepShape_BrepWithVoids) &
TopoDSToStep_MakeBrepWithVoids::Value() const
{
StdFail_NotDone_Raise_if(!done,"");
StdFail_NotDone_Raise_if (!done, "TopoDSToStep_MakeBrepWithVoids::Value() - no result");
return theBrepWithVoids;
}

View File

@ -134,6 +134,6 @@ TopoDSToStep_MakeFacetedBrep::
const Handle(StepShape_FacetedBrep) &
TopoDSToStep_MakeFacetedBrep::Value() const
{
StdFail_NotDone_Raise_if(!done,"");
StdFail_NotDone_Raise_if (!done, "TopoDSToStep_MakeFacetedBrep::Value() - no result");
return theFacetedBrep;
}

View File

@ -124,6 +124,6 @@ TopoDSToStep_MakeFacetedBrepAndBrepWithVoids::
const Handle(StepShape_FacetedBrepAndBrepWithVoids) &
TopoDSToStep_MakeFacetedBrepAndBrepWithVoids::Value() const
{
StdFail_NotDone_Raise_if(!done,"");
StdFail_NotDone_Raise_if (!done, "TopoDSToStep_MakeFacetedBrepAndBrepWithVoids::Value() - no result");
return theFacetedBrepAndBrepWithVoids;
}

View File

@ -72,7 +72,7 @@ TopoDSToStep_MakeGeometricCurveSet::TopoDSToStep_MakeGeometricCurveSet(
const Handle(StepShape_GeometricCurveSet)& TopoDSToStep_MakeGeometricCurveSet::Value() const
{
StdFail_NotDone_Raise_if(!done,"");
StdFail_NotDone_Raise_if (!done, "TopoDSToStep_MakeGeometricCurveSet::Value() - no result");
return theGeometricCurveSet;
}

View File

@ -111,6 +111,6 @@ TopoDSToStep_MakeManifoldSolidBrep::
const Handle(StepShape_ManifoldSolidBrep) &
TopoDSToStep_MakeManifoldSolidBrep::Value() const
{
StdFail_NotDone_Raise_if(!done,"");
StdFail_NotDone_Raise_if (!done, "TopoDSToStep_MakeManifoldSolidBrep::Value() - no result");
return theManifoldSolidBrep;
}

View File

@ -205,6 +205,6 @@ TopoDSToStep_MakeShellBasedSurfaceModel::
const Handle(StepShape_ShellBasedSurfaceModel) &
TopoDSToStep_MakeShellBasedSurfaceModel::Value() const
{
StdFail_NotDone_Raise_if(!done,"");
StdFail_NotDone_Raise_if (!done, "TopoDSToStep_MakeShellBasedSurfaceModel::Value() - no result");
return theShellBasedSurfaceModel;
}

View File

@ -283,7 +283,7 @@ void TopoDSToStep_MakeStepEdge::Init(const TopoDS_Edge& aEdge,
const Handle(StepShape_TopologicalRepresentationItem)& TopoDSToStep_MakeStepEdge::Value() const
{
StdFail_NotDone_Raise_if(!done,"");
StdFail_NotDone_Raise_if (!done, "TopoDSToStep_MakeStepEdge::Value() - no result");
return myResult;
}

View File

@ -476,7 +476,7 @@ void TopoDSToStep_MakeStepFace::Init(const TopoDS_Face& aFace,
const Handle(StepShape_TopologicalRepresentationItem)& TopoDSToStep_MakeStepFace::Value() const
{
StdFail_NotDone_Raise_if(!done,"");
StdFail_NotDone_Raise_if (!done, "TopoDSToStep_MakeStepFace::Value() - no result");
return myResult;
}

Some files were not shown because too many files have changed in this diff Show More