]> source.dussan.org Git - nextcloud-server.git/commitdiff
Replace exception with standard exception
authorJoas Schilling <nickvergessen@gmx.de>
Wed, 26 Nov 2014 11:42:43 +0000 (12:42 +0100)
committerJoas Schilling <nickvergessen@gmx.de>
Thu, 27 Nov 2014 10:10:05 +0000 (11:10 +0100)
lib/private/arrayparser.php

index dab1817c2ed43a64c1e3058179aea06d8be870d2..1cf3355d6fa0cf4d90848bea789e1abd1c627d97 100644 (file)
@@ -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--;
                                                }