]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/resolver/action/html/class_HtmlActionResolver.php
Rewrite continues:
[core.git] / framework / main / classes / resolver / action / html / class_HtmlActionResolver.php
index aaee84f4f7fec8fa221fa97141c18d19ab441476..e6ca1fa1edfa075d52a8c1756678ff3baddce4ec 100644 (file)
@@ -3,10 +3,12 @@
 namespace CoreFramework\Resolver\Action;
 
 // Import framework stuff
-use CoreFramework\Generic\EmptyVariableException;
 use CoreFramework\Manager\ManageableApplication;
 use CoreFramework\Request\Requestable;
 
+// Import SPL stuff
+use \InvalidArgumentException;
+
 /**
  * A action resolver for local (non-hubbed) actions
  *
@@ -54,7 +56,7 @@ class HtmlActionResolver extends BaseActionResolver implements ActionResolver {
         * @param       $actionName                             The default action we shall execute
         * @param       $applicationInstance    An instance of a manageable application helper class
         * @return      $resolverInstance               The prepared action resolver instance
-        * @throws      EmptyVariableException  Thrown if default action is not set
+        * @throws      InvalidArgumentException        Thrown if default action is not set
         * @throws      InvalidActionException  Thrown if default action is invalid
         */
        public static final function createHtmlActionResolver ($actionName, ManageableApplication $applicationInstance) {
@@ -64,7 +66,7 @@ class HtmlActionResolver extends BaseActionResolver implements ActionResolver {
                // Is the variable $actionName set and the action is valid?
                if (empty($actionName)) {
                        // Then thrown an exception here
-                       throw new EmptyVariableException(array($resolverInstance, 'defaultAction'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING);
+                       throw new InvalidArgumentException('Parameter "actionName" is empty');
                } elseif ($resolverInstance->isActionValid($actionName) === false) {
                        // Invalid action found
                        throw new InvalidActionException(array($resolverInstance, $actionName), self::EXCEPTION_INVALID_ACTION);