PHP Classes

File: vendor/league/flysystem/src/UnreadableFileException.php

Recommend this page to a friend!
  Classes of Renato Lucena   PHP Pokemon Script   vendor/league/flysystem/src/UnreadableFileException.php   Download  
File: vendor/league/flysystem/src/UnreadableFileException.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Pokemon Script
Provides an API to manage a database of Pokemons
Author: By
Last change:
Date: 6 years ago
Size: 345 bytes
 

Contents

Class file image Download
<?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()
            )
        );
    }
}