if (Qualified1.IsEnclosed()) {
// ============================
- GccEnt_BadQualifier::Raise();
+ throw GccEnt_BadQualifier();
}
else if (Qualified1.IsEnclosing()) {
// ==================================
if (Qualified1.IsEnclosed()) {
// ============================
- GccEnt_BadQualifier::Raise();
+ throw GccEnt_BadQualifier();
}
else if (Qualified1.IsEnclosing()) {
// ==================================
Standard_Integer GccAna_Lin2dTanPer::
NbSolutions () const
{
- if (!WellDone) { StdFail_NotDone::Raise(); }
+ if (!WellDone) { throw StdFail_NotDone(); }
return NbrSol;
}
gp_Lin2d GccAna_Lin2dTanPer::
ThisSolution (const Standard_Integer Index) const
{
- if (!WellDone) { StdFail_NotDone::Raise(); }
- if (Index <= 0 || Index > NbrSol) { Standard_RangeError::Raise(); }
+ if (!WellDone) { throw StdFail_NotDone(); }
+ if (Index <= 0 || Index > NbrSol) { throw Standard_RangeError(); }
return linsol(Index);
}
WhichQualifier(const Standard_Integer Index ,
GccEnt_Position& Qualif1 ) const
{
- if (!WellDone) { StdFail_NotDone::Raise(); }
- if (Index <= 0 ||Index > NbrSol) { Standard_OutOfRange::Raise(); }
+ if (!WellDone) { throw StdFail_NotDone(); }
+ if (Index <= 0 ||Index > NbrSol) { throw Standard_OutOfRange(); }
else {
Qualif1 = qualifier1(Index);
}
Standard_Real& ParSol,
Standard_Real& ParArg,
gp_Pnt2d& Pnt) const{
- if (!WellDone) { StdFail_NotDone::Raise(); }
- else if (Index <= 0 ||Index > NbrSol) { Standard_OutOfRange::Raise(); }
+ if (!WellDone) { throw StdFail_NotDone(); }
+ else if (Index <= 0 ||Index > NbrSol) { throw Standard_OutOfRange(); }
else {
ParSol = par1sol(Index);
ParArg = pararg1(Index);
Standard_Real& ParSol,
Standard_Real& ParArg,
gp_Pnt2d& PntSol) const {
- if (!WellDone) { StdFail_NotDone::Raise(); }
- else if (Index <= 0 ||Index > NbrSol) { Standard_OutOfRange::Raise(); }
+ if (!WellDone) { throw StdFail_NotDone(); }
+ else if (Index <= 0 ||Index > NbrSol) { throw Standard_OutOfRange(); }
else {
ParSol = par2sol(Index);
ParArg = pararg2(Index);