0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / Storage / Storage_StreamFormatError.hxx
index e31068b..e3c44b3 100644 (file)
@@ -27,7 +27,7 @@ DEFINE_STANDARD_HANDLE(Storage_StreamFormatError, Standard_Failure)
 
 #if !defined No_Exception && !defined No_Storage_StreamFormatError
   #define Storage_StreamFormatError_Raise_if(CONDITION, MESSAGE) \
-  if (CONDITION) Storage_StreamFormatError::Raise(MESSAGE);
+  if (CONDITION) throw Storage_StreamFormatError(MESSAGE);
 #else
   #define Storage_StreamFormatError_Raise_if(CONDITION, MESSAGE)
 #endif