CoreFiles by mySites.guru
UntellableStreamException.php25 lines, 586 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
dfb1cb74f088bbaf23657a168d892df9
sha1
a93679e994a2439e8f474ae698badc4f93068492
sha256
64ca079cbd1ccb1f7f52e50ce75b1b6fc952a22a47e244377b812c555eb0ca94
<?php

declare(strict_types=1);

namespace Laminas\Diactoros\Exception;

use RuntimeException;

class UntellableStreamException extends RuntimeException implements ExceptionInterface
{
    public static function dueToMissingResource(): self
    {
        return new self('No resource available; cannot tell position');
    }

    public static function dueToPhpError(): self
    {
        return new self('Error occurred during tell operation');
    }

    public static function forCallbackStream(): self
    {
        return new self('Callback streams cannot tell 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.