Debian Codegraph @

lib/3rdParty/composer/symfony/filesystem/Exception/IOException.php

raw symbols SCIP
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <[email protected]>
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 Symfony\Component\Filesystem\Exception;
13
14 /**
15 * Exception class thrown when a filesystem operation failure happens.
16 *
17 * @author Romain Neutron <[email protected]>
18 * @author Christian Gärtner <[email protected]>
19 * @author Fabien Potencier <[email protected]>
20 */
21 class IOException extends \RuntimeException implements IOExceptionInterface
22 {
23 public function __construct(
24 string $message,
25 int $code = 0,
26 ?\Throwable $previous = null,
27 private ?string $path = null,
28 ) {
29 parent::__construct($message, $code, $previous);
30 }
31
32 public function getPath(): ?string
33 {
34 return $this->path;
35 }
36 }