public function __construct($taskName) { parent::__construct(sprintf('Task "%s" not found', $taskName)); $this->taskName = $taskName; }