aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/corba-cal.c
diff options
context:
space:
mode:
authorEskil Heyn Olsen <eskil@src.gnome.org>1999-09-15 22:02:57 +0800
committerEskil Heyn Olsen <eskil@src.gnome.org>1999-09-15 22:02:57 +0800
commitc6da2725e05030af92353147a37a5f559e5f3a42 (patch)
treef7338de6fc84b92fde4037d307910797a809731b /calendar/corba-cal.c
parent7251a2d2bc2274529e1ddd1d5a3c04771cc86113 (diff)
downloadgsoc2013-evolution-c6da2725e05030af92353147a37a5f559e5f3a42.tar
gsoc2013-evolution-c6da2725e05030af92353147a37a5f559e5f3a42.tar.gz
gsoc2013-evolution-c6da2725e05030af92353147a37a5f559e5f3a42.tar.bz2
gsoc2013-evolution-c6da2725e05030af92353147a37a5f559e5f3a42.tar.lz
gsoc2013-evolution-c6da2725e05030af92353147a37a5f559e5f3a42.tar.xz
gsoc2013-evolution-c6da2725e05030af92353147a37a5f559e5f3a42.tar.zst
gsoc2013-evolution-c6da2725e05030af92353147a37a5f559e5f3a42.zip
fixed the exception throwing. The conduit can now actually insert
entries in the gnomecal. svn path=/trunk/; revision=1230
Diffstat (limited to 'calendar/corba-cal.c')
-rw-r--r--calendar/corba-cal.c30
1 files changed, 25 insertions, 5 deletions
diff --git a/calendar/corba-cal.c b/calendar/corba-cal.c
index 6b4566dc06..787c913418 100644
--- a/calendar/corba-cal.c
+++ b/calendar/corba-cal.c
@@ -55,11 +55,14 @@ cal_repo_get_object (PortableServer_Servant servant,
obj = calendar_object_find_event (gcal->cal, uid);
if (obj == NULL){
+ GNOME_Calendar_Repository_NotFound *exn;
+
+ exn = GNOME_Calendar_Repository_NotFound__alloc();
CORBA_exception_set (
ev,
CORBA_USER_EXCEPTION,
ex_GNOME_Calendar_Repository_NotFound,
- "");
+ exn);
return NULL;
}
@@ -80,11 +83,17 @@ cal_repo_get_object_by_pilot_id (PortableServer_Servant servant,
char *buffer;
CORBA_char *ret;
+ g_message("entering cal_repo_get_object_by_pilot_id\n");
+
obj = calendar_object_find_by_pilot (gcal->cal, pilot_id);
if (obj == NULL){
+ GNOME_Calendar_Repository_NotFound *exn;
+
+ exn = GNOME_Calendar_Repository_NotFound__alloc();
CORBA_exception_set (ev,
CORBA_USER_EXCEPTION,
- ex_GNOME_Calendar_Repository_NotFound, NULL);
+ ex_GNOME_Calendar_Repository_NotFound, exn);
+ g_message("leaving cal_repo_get_object_by_pilot_id the hard way\n");
return NULL;
}
@@ -92,6 +101,8 @@ cal_repo_get_object_by_pilot_id (PortableServer_Servant servant,
ret = CORBA_string_dup (buffer);
free (buffer);
+ g_message("leaving cal_repo_get_object_by_pilot_id\n");
+
return ret;
}
@@ -106,9 +117,12 @@ cal_repo_get_id_from_pilot_id (PortableServer_Servant servant,
obj = calendar_object_find_by_pilot (gcal->cal, pilot_id);
if (obj == NULL){
+ GNOME_Calendar_Repository_NotFound *exn;
+
+ exn = GNOME_Calendar_Repository_NotFound__alloc();
CORBA_exception_set (ev,
CORBA_USER_EXCEPTION,
- ex_GNOME_Calendar_Repository_NotFound, NULL);
+ ex_GNOME_Calendar_Repository_NotFound, exn);
return NULL;
}
@@ -125,9 +139,12 @@ cal_repo_delete_object (PortableServer_Servant servant,
obj = calendar_object_find_event (gcal->cal, uid);
if (obj == NULL){
+ GNOME_Calendar_Repository_NotFound *exn;
+
+ exn = GNOME_Calendar_Repository_NotFound__alloc();
CORBA_exception_set (ev,
CORBA_USER_EXCEPTION,
- ex_GNOME_Calendar_Repository_NotFound, NULL);
+ ex_GNOME_Calendar_Repository_NotFound, exn);
return;
}
@@ -166,11 +183,14 @@ cal_repo_update_pilot_id (PortableServer_Servant servant,
obj = calendar_object_find_event (gcal->cal, uid);
if (obj == NULL){
+ GNOME_Calendar_Repository_NotFound *exn;
+
+ exn = GNOME_Calendar_Repository_NotFound__alloc();
CORBA_exception_set (
ev,
CORBA_USER_EXCEPTION,
ex_GNOME_Calendar_Repository_NotFound,
- "");
+ exn);
return;
}