summaryrefslogtreecommitdiff
path: root/lib/Kolab/CalDAV/CalendarBackend.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-06-20 09:00:30 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-06-20 09:00:30 (GMT)
commit5730dd9cea7f5bef24861964aa02a37ea3d6ffe1 (patch)
treeac649bec792bba673820af3d6f441f3b5276a567 /lib/Kolab/CalDAV/CalendarBackend.php
parenta7b85e71e8e06ddefaed655c602ac34b36d2e7f5 (diff)
downloadiRony-5730dd9cea7f5bef24861964aa02a37ea3d6ffe1.tar.gz
Fix access to magic __all__ address book; properly throw exceptions on backend errors
Diffstat (limited to 'lib/Kolab/CalDAV/CalendarBackend.php')
-rw-r--r--lib/Kolab/CalDAV/CalendarBackend.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Kolab/CalDAV/CalendarBackend.php b/lib/Kolab/CalDAV/CalendarBackend.php
index 89e2d25..1ebc3ef 100644
--- a/lib/Kolab/CalDAV/CalendarBackend.php
+++ b/lib/Kolab/CalDAV/CalendarBackend.php
@@ -380,6 +380,8 @@ class CalendarBackend extends CalDAV\Backend\AbstractBackend
'file' => __FILE__, 'line' => __LINE__,
'message' => "Error saving event object to Kolab server"),
true, false);
+
+ throw new DAV\Exception('Error saving event object to backend');
}
}
else {
@@ -388,6 +390,8 @@ class CalendarBackend extends CalDAV\Backend\AbstractBackend
'file' => __FILE__, 'line' => __LINE__,
'message' => "Error creating calendar object: UID doesn't match object URI"),
true, false);
+
+ throw new DAV\Exception\NotFound("UID doesn't match object URI");
}
// return new Etag
@@ -426,7 +430,7 @@ class CalendarBackend extends CalDAV\Backend\AbstractBackend
'message' => "Error creating calendar object: UID doesn't match object URI"),
true, false);
- return null;
+ throw new DAV\Exception\NotFound("UID doesn't match object URI");
}
// copy meta data (starting with _) from old object
@@ -447,7 +451,7 @@ class CalendarBackend extends CalDAV\Backend\AbstractBackend
'message' => "Error saving event object to Kolab server"),
true, false);
- return null;
+ throw new DAV\Exception('Error saving event object to backend');
}
// return new Etag