class FileNotFoundException
Same name in this branch
- 11.1.x vendor/symfony/http-foundation/File/Exception/FileNotFoundException.php \Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException
Exception class thrown when a file couldn't be found.
@author Fabien Potencier <fabien@symfony.com> @author Christian Gärtner <christiangaertner.film@googlemail.com>
Hierarchy
- class \Symfony\Component\Filesystem\Exception\RuntimeException extends \Symfony\Component\Filesystem\Exception\RuntimeException implements \Symfony\Component\Filesystem\Exception\ExceptionInterface
- class \Symfony\Component\Filesystem\Exception\RuntimeException extends \Symfony\Component\Filesystem\Exception\RuntimeException implements \Symfony\Component\Filesystem\Exception\ExceptionInterface
- class \Symfony\Component\Filesystem\Exception\IOException extends \Symfony\Component\Filesystem\Exception\RuntimeException implements \Symfony\Component\Filesystem\Exception\IOExceptionInterface
- class \Symfony\Component\Filesystem\Exception\FileNotFoundException extends \Symfony\Component\Filesystem\Exception\IOException
- class \Symfony\Component\Filesystem\Exception\IOException extends \Symfony\Component\Filesystem\Exception\RuntimeException implements \Symfony\Component\Filesystem\Exception\IOExceptionInterface
- class \Symfony\Component\Filesystem\Exception\RuntimeException extends \Symfony\Component\Filesystem\Exception\RuntimeException implements \Symfony\Component\Filesystem\Exception\ExceptionInterface
Expanded class hierarchy of FileNotFoundException
1 file declares its use of FileNotFoundException
- Filesystem.php in vendor/
symfony/ filesystem/ Filesystem.php
File
-
vendor/
symfony/ filesystem/ Exception/ FileNotFoundException.php, line 20
Namespace
Symfony\Component\Filesystem\ExceptionView source
class FileNotFoundException extends IOException {
public function __construct(?string $message = null, int $code = 0, ?\Throwable $previous = null, ?string $path = null) {
if (null === $message) {
if (null === $path) {
$message = 'File could not be found.';
}
else {
$message = \sprintf('File "%s" could not be found.', $path);
}
}
parent::__construct($message, $code, $previous, $path);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
FileNotFoundException::__construct | public | function | Overrides IOException::__construct | |
IOException::getPath | public | function | Returns the associated path for the exception. | Overrides IOExceptionInterface::getPath |