0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / Graphic3d / Graphic3d_AspectText3d.cxx
index 0cfe9a5..941084b 100644 (file)
@@ -64,6 +64,6 @@ Graphic3d_AspectText3d::Graphic3d_AspectText3d (const Quantity_Color&  theColor,
 
   if (theExpansionFactor <= 0.0)
   {
-    Graphic3d_AspectTextDefinitionError::Raise ("Bad value for TextScaleFactor");
+    throw Graphic3d_AspectTextDefinitionError("Bad value for TextScaleFactor");
   }
 }