From: dw6 Date: Mon, 24 Nov 2008 15:28:35 +0000 (+0000) Subject: throw more informative DuplicateEventRegistrationException X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=70c17078f848c5a17288a47c87c0916d30e3021f;p=senf.git throw more informative DuplicateEventRegistrationException git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@976 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Scheduler/FdEvent.cc b/Scheduler/FdEvent.cc index afe10c7..b6a5a4e 100644 --- a/Scheduler/FdEvent.cc +++ b/Scheduler/FdEvent.cc @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2008 +// Copyright (C) 2008 // Fraunhofer Institute for Open Communication Systems (FOKUS) // Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund @@ -52,7 +52,7 @@ prefix_ bool senf::scheduler::detail::FdDispatcher::add(FdEvent & event) for (FdSet::iterator i (range.first); i != range.second; ++i) events |= i->events_; if (event.events_ & events) - throw FdEvent::DuplicateEventRegistrationException(); + throw FdEvent::DuplicateEventRegistrationException() << "vinfo: " << event.v_info(); if (! detail::FdManager::instance().set(event.fd_, events | event.events_, &event)) return false; @@ -89,7 +89,7 @@ prefix_ void senf::scheduler::detail::FileDispatcher::add(FdEvent & event) for (FdSet::iterator i (range.first); i != range.second; ++i) events |= i->events_; if (event.events_ & events) - throw FdEvent::DuplicateEventRegistrationException(); + throw FdEvent::DuplicateEventRegistrationException() << "vinfo: " << event.v_info(); detail::FIFORunner::instance().enqueue(&event); fds_.insert(range.first, event); @@ -201,7 +201,7 @@ prefix_ std::string senf::scheduler::FdEvent::v_info() #undef prefix_ //#include "FdEvent.mpp" - + // Local Variables: // mode: c++ // fill-column: 100