protected execute ( izzum\command\ICommand $command ) | ||
$command | izzum\command\ICommand |
protected function execute(ICommand $command)
{
try {
$command->execute();
} catch (\Exception $e) {
// command failure
$e = new Exception($e->getMessage(), Exception::COMMAND_EXECUTION_FAILURE, $e);
throw $e;
}
}