123456789101112131415161718 |
- <?php
- namespace League\Flysystem;
- use SplFileInfo;
- class UnreadableFileException extends Exception
- {
- public static function forFileInfo(SplFileInfo $fileInfo)
- {
- return new static(
- sprintf(
- 'Unreadable file encountered: %s',
- $fileInfo->getRealPath()
- )
- );
- }
- }
|