CoreFiles by mySites.guru
UnseekableStreamException.php30 lines, 695 bytes, from Joomla_6.1.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 6.1.0-alpha1
md5
51d5d33994344fd59aaa2836e16d2ec2
sha1
2182e2be57c1306e215f8838b71e845253c6482a
sha256
e71c96a59ea9678f80eb2b9ee9208731d5e8181e6e5a09626ca34122f3ef9dba
<?php

declare(strict_types=1);

namespace Laminas\Diactoros\Exception;

use RuntimeException;

class UnseekableStreamException extends RuntimeException implements ExceptionInterface
{
    public static function dueToConfiguration(): self
    {
        return new self('Stream is not seekable');
    }

    public static function dueToMissingResource(): self
    {
        return new self('No resource available; cannot seek position');
    }

    public static function dueToPhpError(): self
    {
        return new self('Error seeking within stream');
    }

    public static function forCallbackStream(): self
    {
        return new self('Callback streams cannot seek position');
    }
}

The same content is in 158 releases, Joomla 5.0.0-alpha1 to 6.3.0-alpha1. See them all, or every version of this file.