2015-03-04 13:24:24 +01:00
|
|
|
<?php
|
2024-05-23 09:26:56 +02:00
|
|
|
|
2015-03-04 13:24:24 +01:00
|
|
|
/**
|
2024-05-23 09:26:56 +02:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2015-03-04 13:24:24 +01:00
|
|
|
*/
|
|
|
|
namespace OC\Template;
|
|
|
|
|
|
|
|
class ResourceNotFoundException extends \LogicException {
|
|
|
|
protected $resource;
|
|
|
|
protected $webPath;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $resource
|
|
|
|
* @param string $webPath
|
|
|
|
*/
|
|
|
|
public function __construct($resource, $webPath) {
|
|
|
|
parent::__construct('Resource not found');
|
|
|
|
$this->resource = $resource;
|
|
|
|
$this->webPath = $webPath;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getResourcePath() {
|
2015-04-20 11:01:33 +02:00
|
|
|
return $this->webPath . '/' . $this->resource;
|
2015-03-04 13:24:24 +01:00
|
|
|
}
|
|
|
|
}
|