<?phpnamespaceMaatwebsite\Excel\Exceptions;classSheetNotFoundExceptionextends\ExceptionimplementsLaravelExcelException{/** * @param string $name * * @return SheetNotFoundException */publicstaticfunctionbyName(string$name):SheetNotFoundException{returnnewstatic("Your requested sheet name [{$name}] is out of bounds.");}/** * @param int $index * @param int $sheetCount * * @return SheetNotFoundException */publicstaticfunctionbyIndex(int$index,int$sheetCount):SheetNotFoundException{returnnewstatic("Your requested sheet index: {$index} is out of bounds. The actual number of sheets is {$sheetCount}.");}}