X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FPlugin%2FPlugin.cxx;h=04b7f59e5a696027caf7a856f7300d189f890932;hb=9775fa6110885e0afde1c68f4a078a0766cb5521;hpb=0c63f2f8b922bc36025a61eed81ca221fdeb37e4 diff --git a/src/Plugin/Plugin.cxx b/src/Plugin/Plugin.cxx index 182e69d388..04b7f59e5a 100644 --- a/src/Plugin/Plugin.cxx +++ b/src/Plugin/Plugin.cxx @@ -52,7 +52,7 @@ Handle(Standard_Transient) Plugin::Load (const Standard_GUID& aGUID, aMsg << theResource.ToCString() << endl; if (theVerbose) cout << "could not find the resource:" << theResource.ToCString() << endl; - Plugin_Failure::Raise(aMsg); + throw Plugin_Failure(aMsg.str().c_str()); } TCollection_AsciiString thePluginLibrary(""); @@ -78,7 +78,7 @@ Handle(Standard_Transient) Plugin::Load (const Standard_GUID& aGUID, aMsg << error.ToCString(); if (theVerbose) cout << "could not open: " << PluginResource->Value(theResource.ToCString())<< " ; reason: "<< error.ToCString() << endl; - Plugin_Failure::Raise(aMsg); + throw Plugin_Failure(aMsg.str().c_str()); } f = theSharedLibrary.DlSymb("PLUGINFACTORY"); if( f == NULL ) { @@ -86,7 +86,7 @@ Handle(Standard_Transient) Plugin::Load (const Standard_GUID& aGUID, Standard_SStream aMsg; aMsg << "could not find the factory in:"; aMsg << PluginResource->Value(theResource.ToCString()); aMsg << error.ToCString(); - Plugin_Failure::Raise(aMsg); + throw Plugin_Failure(aMsg.str().c_str()); } theMapOfFunctions.Bind(pid,f); }