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
*
* @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) {
// 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);