| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
class Symfony_Filesystem_Exception_IOException extends RuntimeException implements Symfony_Filesystem_Exception_IOExceptionInterface |
| 5 |
{ |
| 6 |
private $path; |
| 7 |
|
| 8 |
public function __construct($message, $code = 0, Exception $previous = null, $path = null) |
| 9 |
{ |
| 10 |
$this->path = $path; |
| 11 |
|
| 12 |
if (version_compare(PHP_VERSION, '5.3', '>=')) { |
| 13 |
parent::__construct($message, $code, $previous); |
| 14 |
} else { |
| 15 |
parent::__construct($message, $code); |
| 16 |
} |
| 17 |
} |
| 18 |
|
| 19 |
/** |
| 20 |
* {@inheritdoc} |
| 21 |
*/ |
| 22 |
public function getPath() |
| 23 |
{ |
| 24 |
return $this->path; |
| 25 |
} |
| 26 |
} |
| 27 |
|