0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / Aspect / Aspect_GraphicDeviceDefinitionError.hxx
index 5c4b9f0..f9deefd 100644 (file)
@@ -26,7 +26,7 @@ DEFINE_STANDARD_HANDLE(Aspect_GraphicDeviceDefinitionError, Standard_OutOfRange)
 
 #if !defined No_Exception && !defined No_Aspect_GraphicDeviceDefinitionError
   #define Aspect_GraphicDeviceDefinitionError_Raise_if(CONDITION, MESSAGE) \
-  if (CONDITION) Aspect_GraphicDeviceDefinitionError::Raise(MESSAGE);
+  if (CONDITION) throw Aspect_GraphicDeviceDefinitionError(MESSAGE);
 #else
   #define Aspect_GraphicDeviceDefinitionError_Raise_if(CONDITION, MESSAGE)
 #endif