From f5f15e5076b979e1c532bf03a12cda96c42bf0b1 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 26 Dec 2004 16:46:52 +0000 Subject: Allow creating a service from an URL. --- src/exception.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/exception.cpp') 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"; } -- cgit v1.2.3