/** * @param string $parameter */ public function __construct($parameter) { parent::__construct("The given parameter, {$parameter}, is not defined, or set, in the given task.", 500); }
/** * @param string $parameter */ public function __construct($parameter) { parent::__construct("The required parameter, {$parameter}, is not set, and it is required.", 500); }
/** * @param string $task */ public function __construct($task) { parent::__construct(sprintf("Could not find the `%s` task.", $task)); }
/** * @param string $task The task name * @param string $message The error output */ public function __construct($task, $message = '') { parent::__construct(sprintf("There was an error running the %s task. %s", $task, empty($message) ? '' : 'Output: ' . $message)); }