X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fresolver%2Fcommand%2Fclass_BaseCommandResolver.php;h=b0ddb5cc6dc81368d057e1f48a9a5696776b6fbb;hp=a6d015cc164e6c094c1068c246c22b7545ad64ef;hb=2882b57ca6f372b822f96034ff2fe6aafd7daeb8;hpb=146c8b3c929a1b0ab17d6605e5ae949ac44899c1 diff --git a/framework/main/classes/resolver/command/class_BaseCommandResolver.php b/framework/main/classes/resolver/command/class_BaseCommandResolver.php index a6d015cc..b0ddb5cc 100644 --- a/framework/main/classes/resolver/command/class_BaseCommandResolver.php +++ b/framework/main/classes/resolver/command/class_BaseCommandResolver.php @@ -1,17 +1,17 @@ . */ -class BaseCommandResolver extends BaseResolver { +abstract class BaseCommandResolver extends BaseResolver { /** * Protected constructor * @@ -163,7 +163,7 @@ class BaseCommandResolver extends BaseResolver { * @param $namespace Namespace to look in * @param $commandName The default command we shall execute * @return $isValid Whether the given command is valid - * @throws EmptyVariableException Thrown if given command is not set + * @throws InvalidArgumentException Thrown if given command is not set */ protected function isCommandValid ($namespace, $commandName) { // By default nothing shall be valid @@ -172,10 +172,10 @@ class BaseCommandResolver extends BaseResolver { // Is namespace and command name set? if (empty($namespace)) { // Then thrown an exception here - throw new EmptyVariableException(array($this, 'namespace'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING); + throw new InvalidArgumentException('Parameter "namespace" is empty'); } elseif (empty($commandName)) { // Then thrown an exception here - throw new EmptyVariableException(array($this, 'commandName'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING); + throw new InvalidArgumentException('Parameter "commandName" is empty'); } // END - if // Create the full class name