Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/./../app/.././../../finland.picotech.app/public_html/storage/../vendor/./phpoption/../laravel/../tijsverkoyen/../barryvdh/laravel-dompdf/../../maennchen/zipstream-php/./src/./Exception
الملفات الموجودة في هذا الـ Path:
.
..
DosTimeOverflowException.php
FileNotFoundException.php
FileNotReadableException.php
FileSizeIncorrectException.php
OverflowException.php
ResourceActionException.php
SimulationFileUnknownException.php
StreamNotReadableException.php
StreamNotSeekableException.php

مشاهدة ملف: ResourceActionException.php

<?php

declare(strict_types=1);

namespace ZipStream\Exception;

use ZipStream\Exception;

/**
 * This Exception gets invoked if a resource like `fread` returns false
 */
class ResourceActionException extends Exception
{
    /**
     * @var ?resource
     */
    public $resource;

    /**
     * @param resource $resource
     */
    public function __construct(
        public readonly string $function,
        $resource = null,
    ) {
        $this->resource = $resource;
        parent::__construct('Function ' . $function . 'failed on resource.');
    }
}