0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / TopOpeBRep / TopOpeBRep_Bipoint.cxx
index 5bbcbda..8bbe4dc 100644 (file)
@@ -22,10 +22,10 @@ TopOpeBRep_Bipoint::TopOpeBRep_Bipoint():myI1(0),myI2(0){}
 TopOpeBRep_Bipoint::TopOpeBRep_Bipoint
 (const Standard_Integer I1,const Standard_Integer I2):myI1(I1),myI2(I2){}
 Standard_Integer TopOpeBRep_Bipoint::I1() const {
-if(myI1<=0)Standard_ProgramError::Raise("TopOpeBRep_Bipoint I1=0");
+if(myI1<=0)throw Standard_ProgramError("TopOpeBRep_Bipoint I1=0");
 return myI1;
 }
 Standard_Integer TopOpeBRep_Bipoint::I2() const {
-if(myI2<=0)Standard_ProgramError::Raise("TopOpeBRep_Bipoint I2=0");
+if(myI2<=0)throw Standard_ProgramError("TopOpeBRep_Bipoint I2=0");
 return myI2;
 }