/home/kueuepay/public_html/vendor/maatwebsite/excel/src/Exceptions/SheetNotFoundException.php
<?php

namespace Maatwebsite\Excel\Exceptions;

class SheetNotFoundException extends \Exception implements LaravelExcelException
{
    /**
     * @param  string  $name
     * @return SheetNotFoundException
     */
    public static function byName(string $name): SheetNotFoundException
    {
        return new static("Your requested sheet name [{$name}] is out of bounds.");
    }

    /**
     * @param  int  $index
     * @param  int  $sheetCount
     * @return SheetNotFoundException
     */
    public static function byIndex(int $index, int $sheetCount): SheetNotFoundException
    {
        return new static("Your requested sheet index: {$index} is out of bounds. The actual number of sheets is {$sheetCount}.");
    }
}
Best Practice

Best Practices

To ensure a smooth integration process and optimal performance, follow these best practices:

  1. Use secure HTTPS connections for all API requests.
  2. Implement robust error handling to handle potential issues gracefully.
  3. Regularly update your integration to stay current with any API changes or enhancements.