| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
* This file is part of Mustache.php. |
| 5 |
* |
| 6 |
* (c) 2010-2014 Justin Hileman |
| 7 |
* |
| 8 |
* For the full copyright and license information, please view the LICENSE |
| 9 |
* file that was distributed with this source code. |
| 10 |
*/ |
| 11 |
|
| 12 |
/** |
| 13 |
* Unknown template exception. |
| 14 |
*/ |
| 15 |
class Mustache_Exception_UnknownTemplateException extends InvalidArgumentException implements Mustache_Exception |
| 16 |
{ |
| 17 |
protected $templateName; |
| 18 |
|
| 19 |
/** |
| 20 |
* @param string $templateName |
| 21 |
*/ |
| 22 |
public function __construct($templateName) |
| 23 |
{ |
| 24 |
$this->templateName = $templateName; |
| 25 |
parent::__construct(sprintf('Unknown template: %s', $templateName)); |
| 26 |
} |
| 27 |
|
| 28 |
public function getTemplateName() |
| 29 |
{ |
| 30 |
return $this->templateName; |
| 31 |
} |
| 32 |
} |
| 33 |
|