public function __construct($path) { $this->path = $path; parent::__construct($path . ' is not directory.'); }