summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/Url.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/Url.h')
-rw-r--r--cpp/src/qpid/Url.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/qpid/Url.h b/cpp/src/qpid/Url.h
index 2e24ba948d..20f42db0ad 100644
--- a/cpp/src/qpid/Url.h
+++ b/cpp/src/qpid/Url.h
@@ -78,6 +78,9 @@ struct Url : public std::vector<Address> {
template<class T> Url& operator=(T s) { parse(s); return *this; }
+ /** Throw InvalidUrl if the URL does not contain any addresses. */
+ void throwIfEmpty() const;
+
/** Replace contents with parsed URL as defined in
* https://wiki.108.redhat.com/jira/browse/AMQP-95
*@exception InvalidUrl if the url is invalid.