18 lines
445 B
PHP
18 lines
445 B
PHP
<?php
|
|
|
|
namespace IriksIT\Manager\Exceptions;
|
|
|
|
use RuntimeException;
|
|
|
|
/**
|
|
* The storage behind the media library could not store, return or delete a file.
|
|
* `status` is 404 when the file is gone, 0 otherwise.
|
|
*/
|
|
class MediaStorageException extends RuntimeException
|
|
{
|
|
public function __construct(string $message, public readonly int $status = 0, public readonly ?int $retryAfter = null)
|
|
{
|
|
parent::__construct($message);
|
|
}
|
|
}
|