]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/resolver/command/html/class_HtmlCommandResolver.php
Continued:
[core.git] / framework / main / classes / resolver / command / html / class_HtmlCommandResolver.php
index 78229a10dde77e58074fff4018c0fa2e04b6db5e..086af0a3a6814a8eca045f00e47e45290a7d225b 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\Resolver\Command;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Command\InvalidCommandException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 
 // Import SPL stuff
@@ -65,7 +66,7 @@ class HtmlCommandResolver extends BaseCommandResolver implements CommandResolver
                // Is the variable $commandName set and the command is valid?
                if (empty($commandName)) {
                        // Then thrown an exception here
-                       throw new InvalidArgumentException('Parameter "commandName" is empty');
+                       throw new InvalidArgumentException('Parameter "commandName" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
                } elseif ($resolverInstance->isCommandValid($commandName) === false) {
                        // Invalid command found
                        // @TODO Missing namespace!