summaryrefslogtreecommitdiff
path: root/lib/Kolab/CalDAV/CalendarBackend.php
diff options
context:
space:
mode:
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