Changed: Removed other throws

--HG--
branch : develop
hg/compatibility-develop
kervala 6 years ago
parent 06a4244df3
commit 6097ada1fa

@ -171,8 +171,7 @@ namespace NLNET
virtual void setTransportPeerInvisible(const std::string &transportInstanceName, bool peerInvisible) =0; virtual void setTransportPeerInvisible(const std::string &transportInstanceName, bool peerInvisible) =0;
/// Activate/stop firewalling mode on a transport /// Activate/stop firewalling mode on a transport
virtual void setTransportFirewallMode(const std::string &transportInstanceName, bool firewalled) virtual void setTransportFirewallMode(const std::string &transportInstanceName, bool firewalled) =0;
throw (EGatewayFirewallBreak) =0;
/// Send a command to a transport /// Send a command to a transport
virtual void transportCommand(const TParsedCommandLine &commandLine) =0; virtual void transportCommand(const TParsedCommandLine &commandLine) =0;
@ -233,9 +232,7 @@ namespace NLNET
/** Disclose module information to a connected gateway. /** Disclose module information to a connected gateway.
* This can also be this gateway itself. * This can also be this gateway itself.
*/ */
virtual void discloseModule(IModuleProxy *moduleProxy) virtual void discloseModule(IModuleProxy *moduleProxy) =0;
throw (EGatewayNotConnected)
=0;
/** Retrieve the proxy for a locally plugged module. /** Retrieve the proxy for a locally plugged module.
* Each local module plugged in a gateway has an associated * Each local module plugged in a gateway has an associated

@ -448,7 +448,6 @@ namespace NLNET
/// Activate/stop firewalling mode on a transport /// Activate/stop firewalling mode on a transport
virtual void setTransportFirewallMode(const std::string &transportInstanceName, bool firewalled) virtual void setTransportFirewallMode(const std::string &transportInstanceName, bool firewalled)
throw (EGatewayFirewallBreak)
{ {
TTransportList::iterator it(_Transports.find(transportInstanceName)); TTransportList::iterator it(_Transports.find(transportInstanceName));
if (it == _Transports.end()) if (it == _Transports.end())
@ -1246,7 +1245,6 @@ namespace NLNET
} }
virtual void discloseModule(IModuleProxy *moduleProxy) virtual void discloseModule(IModuleProxy *moduleProxy)
throw (EGatewayNotConnected)
{ {
nlassert(moduleProxy->getModuleGateway() == this); nlassert(moduleProxy->getModuleGateway() == this);
@ -1584,7 +1582,6 @@ namespace NLNET
} }
virtual void _broadcastModuleMessage(IModule *senderModule, const NLNET::CMessage &message) virtual void _broadcastModuleMessage(IModule *senderModule, const NLNET::CMessage &message)
throw (EModuleNotPluggedHere)
{ {
H_AUTO(CModuleGetaway__broadcastModuleMessage); H_AUTO(CModuleGetaway__broadcastModuleMessage);
// send the message to all proxies (except the sender module) // send the message to all proxies (except the sender module)

@ -102,7 +102,6 @@ namespace NLNET
/// Activate/stop firewalling mode on a transport /// Activate/stop firewalling mode on a transport
virtual void setTransportFirewallMode(const std::string &/* transportInstanceName */, bool /* firewalled */) virtual void setTransportFirewallMode(const std::string &/* transportInstanceName */, bool /* firewalled */)
throw (EGatewayFirewallBreak)
{ {
// unsupported // unsupported
nlstop; nlstop;
@ -174,12 +173,10 @@ namespace NLNET
// return; // return;
// } // }
// virtual void openGatewayServer(uint16 listeningPort) // virtual void openGatewayServer(uint16 listeningPort)
// throw (EGatewayAlreadyOpen, EGatewayPortInUse)
// { // {
// nlstop; // nlstop;
// } // }
// virtual void closeGatewayServer() // virtual void closeGatewayServer()
// throw (EGatewayNotOpen)
// { // {
// nlstop; // nlstop;
// } // }
@ -233,7 +230,6 @@ namespace NLNET
{ {
} }
virtual void discloseModule(IModuleProxy *moduleProxy) virtual void discloseModule(IModuleProxy *moduleProxy)
throw (EGatewayNotConnected)
{ {
// check that the module is plugged here // check that the module is plugged here
nlassert(_ModuleProxies.getB(moduleProxy) != NULL); nlassert(_ModuleProxies.getB(moduleProxy) != NULL);

@ -340,7 +340,7 @@ std::string CParticleWorkspace::getFilename() const
return CFile::getFilename(_Filename); return CFile::getFilename(_Filename);
} }
CWorkspaceNode *CParticleWorkspace::addNode(const std::string &filenameWithFullPath) throw( NLMISC::Exception) CWorkspaceNode *CParticleWorkspace::addNode(const std::string &filenameWithFullPath)
{ {
// Check that file is not already inserted // Check that file is not already inserted
std::string fileName = NLMISC::CFile::getFilename(filenameWithFullPath); std::string fileName = NLMISC::CFile::getFilename(filenameWithFullPath);

Loading…
Cancel
Save