aboutsummaryrefslogtreecommitdiffstats
path: root/demos/effect/switchClass.html
Commit message (Expand)AuthorAgeFilesLines
* Effects: Remove core event/alias and deprecated module dependenciesAlexander Schmitz2015-05-201-1/+1
* Effects: RewriteMike Sherov2014-12-101-2/+2
* Build: Reorganize external directoryScott González2014-06-241-1/+1
* Button demo: Replace anchors with more appropriate buttonsJörn Zaefferer2014-04-241-2/+1
* All: Rename jquery.js to exclude version in filenameJörn Zaefferer2014-03-051-1/+1
* All: Rename all files, removing the "jquery.ui." prefix;Rafael Xavier de Souza2014-01-241-2/+2
* Updating jQuery to 1.10.2.Bruno M. Custódio2013-07-051-1/+1
* Effects (core): Unite demos into the same single effect/ pathRafael Xavier de Souza2013-06-221-0/+40
cpage_attribute'>artonge/fix/publicpage_attribute Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Template/ResourceNotFoundException.php
blob: 4de9a6b40ceeb7a9373630d08d938a931d8a5d3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
 * @copyright Copyright (c) 2016, ownCloud, Inc.
 *
 * @author Joas Schilling <coding@schilljs.com>
 * @author Morris Jobke <hey@morrisjobke.de>
 *
 * @license AGPL-3.0
 *
 * This code is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License, version 3,
 * along with this program. If not, see <http://www.gnu.org/licenses/>
 *
 */

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() {
		return $this->webPath . '/' . $this->resource;
	}
}