[Pkg-owncloud-commits] [php-sabre-vobject] 186/341: Fix exceptions.
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 13:35:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit 0a3dabbb17a5dc2c805b782e6dc847f2d47f3c84
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Thu Jan 22 11:24:10 2015 +0100
Fix exceptions.
---
lib/Parser/XML.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/Parser/XML.php b/lib/Parser/XML.php
index 2951de0..b8085df 100644
--- a/lib/Parser/XML.php
+++ b/lib/Parser/XML.php
@@ -6,6 +6,8 @@ use
Sabre\VObject\Component,
Sabre\VObject\Component\VCalendar,
Sabre\VObject\Component\VCard,
+ Sabre\VObject\EofException,
+ Sabre\VObject\ParseException,
Sabre\Xml as SabreXml;
/**
@@ -107,7 +109,7 @@ class XML extends Parser {
break;
default:
- throw new \Exception('Unsupported XML standard');
+ throw new ParseException('Unsupported XML standard');
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list