summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-11-26 12:42:43 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-11-27 11:10:05 +0100
commitea3780f91156f9028ba61624e8f940b0d09c0f0f (patch)
treeb3d950b95d8481c92702eb203e080a18aa2c17e4 /lib/private
parente1f3abf7a583669ba1fed703365de9e12a76e22c (diff)
downloadnextcloud-server-ea3780f91156f9028ba61624e8f940b0d09c0f0f.tar.gz
nextcloud-server-ea3780f91156f9028ba61624e8f940b0d09c0f0f.zip
Replace exception with standard exception
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/arrayparser.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/arrayparser.php b/lib/private/arrayparser.php
index dab1817c2ed..1cf3355d6fa 100644
--- a/lib/private/arrayparser.php
+++ b/lib/private/arrayparser.php
@@ -21,9 +21,6 @@
namespace OC;
-class SyntaxException extends \Exception {
-}
-
class ArrayParser {
const TYPE_NUM = 1;
const TYPE_BOOL = 2;
@@ -209,7 +206,7 @@ class ArrayParser {
$bracketDepth++;
} elseif ($char === ')') {
if ($bracketDepth <= 0) {
- throw new SyntaxException;
+ throw new UnexpectedValueException();
} else {
$bracketDepth--;
}