File "ResourceActionException.php"
Full Path: /home/fundopuh/trader.fxex.org/vendor/maennchen/zipstream-php/src/Exception/ResourceActionException.php
File size: 563 bytes
MIME-type: text/x-php
Charset: utf-8
<?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.');
}
}