2015-03-04 07:24:24 -05:00
|
|
|
<?php
|
2024-05-23 03:26:56 -04:00
|
|
|
|
2025-09-29 06:23:37 -04:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2015-03-04 07:24:24 -05:00
|
|
|
/**
|
2024-05-23 03:26:56 -04: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 07:24:24 -05:00
|
|
|
*/
|
2025-09-29 06:23:37 -04:00
|
|
|
|
2015-03-04 07:24:24 -05:00
|
|
|
namespace OC\Template;
|
|
|
|
|
|
|
|
|
|
class ResourceNotFoundException extends \LogicException {
|
2025-09-29 06:23:37 -04:00
|
|
|
public function __construct(
|
|
|
|
|
protected string $resource,
|
|
|
|
|
protected string $webPath,
|
|
|
|
|
) {
|
2015-03-04 07:24:24 -05:00
|
|
|
parent::__construct('Resource not found');
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-29 06:23:37 -04:00
|
|
|
public function getResourcePath(): string {
|
2015-04-20 05:01:33 -04:00
|
|
|
return $this->webPath . '/' . $this->resource;
|
2015-03-04 07:24:24 -05:00
|
|
|
}
|
|
|
|
|
}
|