]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/filter/validator/class_RefillRequestValidatorFilter.php
All filters rewritten to throw FilterChainException
[shipsimu.git] / application / ship-simu / main / filter / validator / class_RefillRequestValidatorFilter.php
index 1476a3e0eb3684a65f4ff910daf6c87e81aaaeed..f5ca9e0f902cea95de53f5df1a215d591f457dcd 100644 (file)
@@ -52,6 +52,7 @@ class RefillRequestValidatorFilter extends BaseShipSimuFilter implements Filtera
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         * @todo        Maybe we need to added some more generic tests on the request here?
+        * @throws      FilterChainException    If this filter fails to operate
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Execute the parent execute method
@@ -66,7 +67,7 @@ class RefillRequestValidatorFilter extends BaseShipSimuFilter implements Filtera
                        $responseInstance->addFatalMessage('refill_page_required_fields_missing');
 
                        // Abort here
-                       return false;
+                       throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
                } // END - if
        }
 }