CoreFiles by mySites.guru
UnreadableStreamException.php30 lines, 670 bytes, from Joomla_5.0.0-alpha1-Alpha-Full_Package.zip
Raw History Compare with 4.4.0-alpha4
md5
7d4c06d21bfef8ec534643564889bbde
sha1
48aac1904993a67c30451e4b7d080c1d3d15d131
sha256
a54e894047f99a77dd42d36ac37958e06e7f43394f2b0b50c5343e7f7c589d08
<?php

declare(strict_types=1);

namespace Laminas\Diactoros\Exception;

use RuntimeException;

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

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

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

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

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.