public function execute(Context &$context) { $context->put('log', 'executing error command'); throw new Exception('failed to complete exception!<br />'); }
public function execute(Context &$context) { $context->put('log', 'executing echo command'); return false; }
/** * Notifies that the specified exception has occurred. * * @param Context $context chain context. * @param Exception $exception the exception that occurred during the * execution of the command chain. */ protected function notify(Context $context, $exception) { $context->put('log', 'sending error notification'); }
public function execute(Context &$context) { $context->put('log', 'executing stop command'); return true; }