From a0b95ac74df4e058b00d23e570ffb2b018f360b8 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sun, 25 Mar 2001 23:04:14 +0000 Subject: eh, changed my mind, put the exception back in camel_url_new() svn path=/trunk/; revision=8934 --- camel/camel-url.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'camel/camel-url.c') diff --git a/camel/camel-url.c b/camel/camel-url.c index 527c90da8a..bba935b7b9 100644 --- a/camel/camel-url.c +++ b/camel/camel-url.c @@ -32,6 +32,7 @@ #include #include #include "camel-url.h" +#include "camel-exception.h" #include "camel-mime-utils.h" #include "camel-object.h" @@ -267,18 +268,22 @@ copy_param (GQuark key_id, gpointer data, gpointer user_data) /** * camel_url_new: * @url_string: a URL + * @ex: a CamelException * * Parses an absolute URL. * * Return value: a CamelURL, or %NULL. **/ CamelURL * -camel_url_new (const char *url_string) +camel_url_new (const char *url_string, CamelException *ex) { CamelURL *url = camel_url_new_with_base (NULL, url_string); if (!url->protocol) { camel_url_free (url); + camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_URL_INVALID, + _("Could not parse URL `%s'"), + url_string); return NULL; } return url; -- cgit