aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-url.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-03-26 07:04:14 +0800
committerDan Winship <danw@src.gnome.org>2001-03-26 07:04:14 +0800
commita0b95ac74df4e058b00d23e570ffb2b018f360b8 (patch)
tree1d782e006485ff81059e4b44a649f60423db1c53 /camel/camel-url.c
parent182c699c3909ff7e052f05259bac368b72c464f3 (diff)
downloadgsoc2013-evolution-a0b95ac74df4e058b00d23e570ffb2b018f360b8.tar.gz
gsoc2013-evolution-a0b95ac74df4e058b00d23e570ffb2b018f360b8.tar.zst
gsoc2013-evolution-a0b95ac74df4e058b00d23e570ffb2b018f360b8.zip
eh, changed my mind, put the exception back in camel_url_new()
svn path=/trunk/; revision=8934
Diffstat (limited to 'camel/camel-url.c')
-rw-r--r--camel/camel-url.c7
1 files changed, 6 insertions, 1 deletions
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 <stdlib.h>
#include <string.h>
#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;