0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / QANewBRepNaming / QANewBRepNaming_Sphere.cxx
index 47d7458..dea2ed1 100644 (file)
@@ -58,7 +58,7 @@ QANewBRepNaming_Sphere::QANewBRepNaming_Sphere(const TDF_Label& ResultLabel):QAN
 
 void QANewBRepNaming_Sphere::Init(const TDF_Label& ResultLabel) {
   if(ResultLabel.IsNull())
-    Standard_NullObject::Raise("QANewBRepNaming_Sphere::Init The Result label is Null ..."); 
+    throw Standard_NullObject("QANewBRepNaming_Sphere::Init The Result label is Null ...");
   myResultLabel = ResultLabel;
 }