720c9e78a17419291ea2b44f222ce739d77324d9
[yaffs-website] / vendor / alchemy / zippy / src / Exception / TargetLocatorException.php
1 <?php
2
3 /*
4  * This file is part of Zippy.
5  *
6  * (c) Alchemy <info@alchemy.fr>
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 namespace Alchemy\Zippy\Exception;
13
14 class TargetLocatorException extends RuntimeException
15 {
16     private $resource;
17
18     public function __construct($resource, $message, $code = 0, $previous = null)
19     {
20         $this->resource = $resource;
21         parent::__construct($message, $code, $previous);
22     }
23
24     public function getResource()
25     {
26         return $this->resource;
27     }
28 }