Socket/Protocols/Raw: Allow direct comparison of MACAddress and EUI64 instances
[senf.git] / senf / Socket / Protocols / Raw / ParseString.ct
index dec04ee..9def22c 100644 (file)
@@ -30,6 +30,7 @@
 #include <boost/range.hpp>
 #include <boost/numeric/conversion/cast.hpp>
 #include <senf/Utils/String.hh>
+#include <senf/Socket/Protocols/AddressExceptions.hh>
 
 #define prefix_
 ///////////////////////////////ct.p////////////////////////////////////////
@@ -52,10 +53,10 @@ prefix_ void senf::detail::parseHexString(std::string const & value,
                     std::string(boost::begin(*i),boost::end(*i))));
     }
     catch (std::bad_cast &) {
-        throw AddressSyntaxException();
+        throw AddressSyntaxException(value);
     }
     if (i!=i_end || f!=l)
-        throw AddressSyntaxException();
+        throw AddressSyntaxException(value);
 }
 
 ///////////////////////////////ct.e////////////////////////////////////////