public static function forPath($path, Exception $cause = null) { return new static(sprintf('Could not find any version of path %s.', $path), 0, $cause); }
/** * {@inheritdoc} */ public function getVersions($path) { // Non-editable repositories always contain only one version of a resource try { return new VersionList($path, array($this->get($path))); } catch (ResourceNotFoundException $e) { throw NoVersionFoundException::forPath($path, $e); } }