X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FSocket%2FProtocols%2FAddressExceptions.hh;h=7f47dc4f0d43766ff9a4edc846eb596d031f4f7b;hb=99c145da3884f5c20a74337927ef2cbc073d80d7;hp=fb9e5569cbdbec5bcf6103c96fbd8a6b9c94d3c1;hpb=9cb871b939efe93e35dd96808d25089399acfc46;p=senf.git diff --git a/senf/Socket/Protocols/AddressExceptions.hh b/senf/Socket/Protocols/AddressExceptions.hh index fb9e556..7f47dc4 100644 --- a/senf/Socket/Protocols/AddressExceptions.hh +++ b/senf/Socket/Protocols/AddressExceptions.hh @@ -30,7 +30,7 @@ #include //#include "AddressExceptions.mpp" -///////////////////////////////hh.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// namespace senf { @@ -46,7 +46,7 @@ namespace senf { struct AddressSyntaxException : public AddressException { AddressSyntaxException() : AddressException("invalid address syntax") {} - AddressSyntaxException(const std::string &addr) + AddressSyntaxException(std::string const & addr) : AddressException("Invalid address syntax (\"" + addr + "\")") {} }; @@ -54,13 +54,21 @@ namespace senf { struct UnknownHostnameException : public AddressException { UnknownHostnameException() : AddressException("failed to resolve hostname") {} - UnknownHostnameException(const std::string &hostname) + UnknownHostnameException(std::string const & hostname) : AddressException("Failed to resolve hostname (\"" + hostname + "\")") {} }; + /** \brief Unknown interface */ + struct UnknownInterfaceException : public AddressException + { + UnknownInterfaceException() : AddressException("Unknown interface") {} + UnknownInterfaceException(std::string const & interface) + : AddressException("Unknown interface (\"" + interface + "\")") {} + }; + } -///////////////////////////////hh.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// //#include "AddressExceptions.cci" //#include "AddressExceptions.ct" //#include "AddressExceptions.cti"