| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* League.Csv (https://csv.thephpleague.com) |
| 5 |
* |
| 6 |
* (c) Ignace Nyamagana Butera <[email protected]> |
| 7 |
* |
| 8 |
* For the full copyright and license information, please view the LICENSE |
| 9 |
* file that was distributed with this source code. |
| 10 |
*/ |
| 11 |
|
| 12 |
declare(strict_types=1); |
| 13 |
|
| 14 |
namespace League\Csv; |
| 15 |
|
| 16 |
use Throwable; |
| 17 |
|
| 18 |
/** |
| 19 |
* StreamFilterSupportMissing Exception. |
| 20 |
*/ |
| 21 |
class UnavailableFeature extends Exception |
| 22 |
{ |
| 23 |
/** |
| 24 |
* DEPRECATION WARNING! This class will be removed in the next major point release. |
| 25 |
* |
| 26 |
* @deprecated since version 9.7.0 |
| 27 |
*/ |
| 28 |
public function __construct(string $message = '', int $code = 0, Throwable $previous = null) |
| 29 |
{ |
| 30 |
parent::__construct($message, $code, $previous); |
| 31 |
} |
| 32 |
|
| 33 |
public static function dueToUnsupportedStreamFilterApi(string $className): self |
| 34 |
{ |
| 35 |
return new self('The stream filter API can not be used with a '.$className.' instance.'); |
| 36 |
} |
| 37 |
|
| 38 |
public static function dueToMissingStreamSeekability(): self |
| 39 |
{ |
| 40 |
return new self('stream does not support seeking'); |
| 41 |
} |
| 42 |
} |
| 43 |
|