Streamlined SystemException definition and usage
[senf.git] / Utils / Exception.cti
index bd89b67..3588cdc 100644 (file)
@@ -1,8 +1,8 @@
 // $Id$
 //
-// Copyright (C) 2007 
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
+// Copyright (C) 2007
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
 //     Stefan Bund <g0dil@berlios.de>
 //
 // This program is free software; you can redistribute it and/or modify
 //#include "Exception.ih"
 
 // Custom includes
+#include <boost/lexical_cast.hpp>
 
 #define prefix_ inline
 ///////////////////////////////cti.p///////////////////////////////////////
 
-template <int Code>
-prefix_ senf::ErrnoException<Code>::ErrnoException()
-    : SystemException(fixed_code)
-{}
-
-template <int Code>
-prefix_ senf::ErrnoException<Code>::ErrnoException(char const * where)
-    : SystemException(where,fixed_code)
-{}
+template <class Arg>
+prefix_ senf::Exception & senf::Exception::operator<<(Arg const & arg)
+{
+    message_ += boost::lexical_cast<std::string>(arg);
+    return *this;
+}
 
 /////////////////////////////cti.e///////////////////////////////////////
 #undef prefix_