X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FTarget.hh;h=cbb72c56af74586f499b70877a6a757804a73fa3;hb=25fe79f266e7583750d8e761abec4022d87972b8;hp=0fec6a5c6d5b1e961c209ed8ce2170326d1ce4e3;hpb=445c71d8d242f4ce3d23d8db8d1faf909943cfec;p=senf.git diff --git a/Utils/Logger/Target.hh b/Utils/Logger/Target.hh index 0fec6a5..cbb72c5 100644 --- a/Utils/Logger/Target.hh +++ b/Utils/Logger/Target.hh @@ -35,6 +35,7 @@ #include "../mpl.hh" #include "StreamRegistry.hh" #include "AreaRegistry.hh" +#include "../Exception.hh" //#include "Target.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -341,14 +342,14 @@ namespace log { ///\} /** \brief Exception: Invalid stream */ - struct InvalidStreamException : public std::exception - { virtual char const * what() const throw() - { return "senf::log::Target::InvalidStreamException"; } }; + struct InvalidStreamException : public senf::Exception + { InvalidStreamException() + : senf::Exception("senf::log::Target::InvalidStreamException"){} }; /** \brief Exception: Invalid area */ - struct InvalidAreaException : public std::exception - { virtual char const * what() const throw() - { return "senf::log::Target::InvalidAreaException"; } }; + struct InvalidAreaException : public senf::Exception + { InvalidAreaException() + : senf::Exception("senf::log::Target::InvalidAreaException"){} }; iterator begin() const; ///< Iterator to beginning of routing table iterator end() const; ///< Iterator past the end of routing table