private:
ThreadData <Context> a_contexts;
- void eventReceiveMessage (comm::ClientSocket&, const Message&) throw (RuntimeException);
+ void eventReceiveMessage (comm::ClientSocket&, const Message&) noexcept(false);
};
class ArithmeticServer : public comm::Application {
MyCommunicator a_communicator;
comm::ServerSocket* a_serverSocket;
- void initialize () throw (RuntimeException);
- void run () throw (RuntimeException);
- xml::Node* asXML (xml::Node* app) const throw ();
+ void initialize () noexcept(false);
+ void run () noexcept(false);
+ xml::Node* asXML (xml::Node* app) const ;
};
using namespace std;
// Inicializa el servidor de sockets.
//-----------------------------------------------------------------------------------------
void ArithmeticServer::initialize ()
- throw (RuntimeException)
+ noexcept(false)
{
CommandLine& cl (CommandLine::instantiate ());
// Cuando hay un nuevo mensaje invocar�a Communicator::eventReceiveMessage
//-----------------------------------------------------------------------------------------
void ArithmeticServer::run ()
- throw (RuntimeException)
+ noexcept(false)
{
CommandLine& cl (CommandLine::instantiate ());
}
xml::Node* ArithmeticServer::asXML (xml::Node* app) const
- throw ()
+
{
xml::Node* node = app::Application::asXML (app);
// transport: Instancia del transporto que ha interpretado el mensaje (getMessage).
//-----------------------------------------------------------------------------------------
void MyCommunicator::eventReceiveMessage (ClientSocket& clientSocket, const Message& message)
- throw (RuntimeException)
+ noexcept(false)
{
LOGMETHOD (TraceMethod tm ("MyCommunicator", "eventReceiveMessage", ANNA_FILE_LOCATION));