1<?php 2 3namespace League\Flysystem; 4 5use SplFileInfo; 6 7class UnreadableFileException extends Exception 8{ 9 public static function forFileInfo(SplFileInfo $fileInfo) 10 { 11 return new static( 12 sprintf( 13 'Unreadable file encountered: %s', 14 $fileInfo->getRealPath() 15 ) 16 ); 17 } 18} 19