diff options
author | Mario <mario@mariovavti.com> | 2024-11-09 10:24:26 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-11-09 10:24:26 +0000 |
commit | 0ed08274f16d65b427bd4a5bbd8bd5bd6b2a65c2 (patch) | |
tree | 25b05973f824b95fc5705cf8aa79b86a44cfde00 /vendor/maennchen/zipstream-php/src/Exception/ResourceActionException.php | |
parent | 2a152e0803309eb3646316bbe0d2a47353bad2b9 (diff) | |
parent | 0534fe68869aae231259ee48a38b4533f3f1ff99 (diff) | |
download | volse-hubzilla-0ed08274f16d65b427bd4a5bbd8bd5bd6b2a65c2.tar.gz volse-hubzilla-0ed08274f16d65b427bd4a5bbd8bd5bd6b2a65c2.tar.bz2 volse-hubzilla-0ed08274f16d65b427bd4a5bbd8bd5bd6b2a65c2.zip |
Merge branch 'clean-up-some-dependencies' into 'dev'
Clean up deps and upgrade EpubMeta
See merge request hubzilla/core!2162
Diffstat (limited to 'vendor/maennchen/zipstream-php/src/Exception/ResourceActionException.php')
-rw-r--r-- | vendor/maennchen/zipstream-php/src/Exception/ResourceActionException.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/vendor/maennchen/zipstream-php/src/Exception/ResourceActionException.php b/vendor/maennchen/zipstream-php/src/Exception/ResourceActionException.php new file mode 100644 index 000000000..cbd9b0bb9 --- /dev/null +++ b/vendor/maennchen/zipstream-php/src/Exception/ResourceActionException.php @@ -0,0 +1,29 @@ +<?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.'); + } +} |