0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / OSD / OSD_Directory.cxx
index 7db3ac2..de8467b 100644 (file)
@@ -127,7 +127,7 @@ void OSD_Directory :: Build (const OSD_Protection& Protect) {
 
  if (  dirName.IsEmpty ()  )
 
-  Standard_ProgramError :: Raise ( "OSD_Directory :: Build (): incorrect call - no directory name");
+  throw Standard_ProgramError ( "OSD_Directory :: Build (): incorrect call - no directory name");
 
   Standard_Boolean isOK = Exists();
   if (! isOK)