diff options
author | Vincent Richard <[email protected]> | 2004-12-26 16:46:52 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2004-12-26 16:46:52 +0000 |
commit | f5f15e5076b979e1c532bf03a12cda96c42bf0b1 (patch) | |
tree | f35b0ed8fd175d08101f0a0cb09cc9db26ebe75d /src/exception.cpp | |
parent | Fixed bug in URL parsing. (diff) | |
download | vmime-f5f15e5076b979e1c532bf03a12cda96c42bf0b1.tar.gz vmime-f5f15e5076b979e1c532bf03a12cda96c42bf0b1.zip |
Allow creating a service from an URL.
Diffstat (limited to 'src/exception.cpp')
-rw-r--r-- | src/exception.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/exception.cpp b/src/exception.cpp index bdc1dd5f..9dc71c81 100644 --- a/src/exception.cpp +++ b/src/exception.cpp @@ -355,8 +355,10 @@ const string unsupported_option::name() const { return "unsupported_option"; } // no_service_available::~no_service_available() throw() {} -no_service_available::no_service_available(const exception& other) - : messaging_exception("No service available for this protocol.", other) {} +no_service_available::no_service_available(const string& proto, const exception& other) + : messaging_exception(proto.empty() + ? "No service available for this protocol." + : "No service available for this protocol: '" + proto + "'.", other) {} exception* no_service_available::clone() const { return new no_service_available(*this); } const string no_service_available::name() const { return "no_service_available"; } |