0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / LibCtl / LibCtl_Library.gxx
index af88006..d7fcef9 100644 (file)
@@ -146,12 +146,12 @@ static Handle(LibCtl_Node) thelast;
 
     const Handle(TheModule)& LibCtl_Library::Module () const
 {
-  if (thecurr.IsNull()) Standard_NoSuchObject::Raise("Library from LibCtl");
+  if (thecurr.IsNull()) throw Standard_NoSuchObject("Library from LibCtl");
   return thecurr->Module();
 }
 
     const Handle(TheProtocol)& LibCtl_Library::Protocol () const
 {
-  if (thecurr.IsNull()) Standard_NoSuchObject::Raise("Library from LibCtl");
+  if (thecurr.IsNull()) throw Standard_NoSuchObject("Library from LibCtl");
   return thecurr->Protocol();
 }