Fixed bug #15636: ExtDirect router should throw UnexpectedValueException instead...
authorSteffen Kamper <info@sk-typo3.de>
Fri, 3 Sep 2010 21:56:04 +0000 (21:56 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Fri, 3 Sep 2010 21:56:04 +0000 (21:56 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-4@8754 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/extjs/class.t3lib_extjs_extdirectrouter.php

index e3a8cfe..36b4d26 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-09-03  Steffen Kamper  <steffen@typo3.org>
 
+       * Fixed bug #15636: ExtDirect router should throw UnexpectedValueException instead of t3lib_error_exception
        * Fixed bug #15550: t3lib_error_Exception not available in some cases (Thanks to Stefan Galinski)
 
 2010-09-01  Steffen Kamper  <steffen@typo3.org>
index 8956bae..9fa4c27 100644 (file)
@@ -104,6 +104,7 @@ class t3lib_extjs_ExtDirectRouter {
         *
         * @param object $singleRequest request object from extJS
         * @param string $namespace namespace like TYPO3.Backend
+        * @throws UnexpectedValueException if the remote method couldn't be found
         * @return mixed return value of the called method
         */
        protected function processRpc($singleRequest, $namespace) {
@@ -113,7 +114,7 @@ class t3lib_extjs_ExtDirectRouter {
                        // theoretically this can never happen, because of an javascript error on
                        // the client side due the missing namespace/endpoint
                        if (!isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect'][$endpointName])) {
-                               throw new t3lib_error_Exception('ExtDirect: Call to undefined endpoint: ' . $endpointName);
+                               throw new UnexpectedValueException('ExtDirect: Call to undefined endpoint: ' . $endpointName);
                        }
 
                        $response = array(