X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FAddressExceptions.hh;h=2409cd025000cdc17e23e7acf5f87ed3d8f41b9b;hb=a7adef379311a16ab413aadd32f044c6e339d711;hp=ff59751f6294526c878df713867ef9d88f2e185d;hpb=1d247d12d1759ffd77f456efe3a52f03dd289994;p=senf.git diff --git a/Socket/Protocols/AddressExceptions.hh b/Socket/Protocols/AddressExceptions.hh index ff59751..2409cd0 100644 --- a/Socket/Protocols/AddressExceptions.hh +++ b/Socket/Protocols/AddressExceptions.hh @@ -34,7 +34,7 @@ namespace senf { - /** \brief Base-class for INet4Address exceptions */ + /** \brief Base-class for Address exceptions */ struct AddressException : public senf::Exception { protected: @@ -42,13 +42,19 @@ namespace senf { : senf::Exception(msg) {} }; - /** \brief Invalid INet4 address syntax */ + /** \brief Invalid address syntax */ struct AddressSyntaxException : public AddressException - { AddressSyntaxException() : AddressException("invalid INet4 address syntax") {} }; + { + AddressSyntaxException() : AddressException("invalid address syntax") {} + AddressSyntaxException(std::string const & msg) : AddressException(msg) {} + }; /** \brief Resolver failure */ struct UnknownHostnameException : public AddressException - { UnknownHostnameException() : AddressException("failed to resolve INet4 hostname") {} }; + { + UnknownHostnameException() : AddressException("failed to resolve hostname") {} + UnknownHostnameException(std::string const & msg) : AddressException(msg) {} + }; }