mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 23:01:29 +00:00
22 lines
479 B
PHP
22 lines
479 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Exceptions;
|
|
|
|
use RuntimeException;
|
|
use Throwable;
|
|
|
|
class BookProviderException extends RuntimeException
|
|
{
|
|
public function __construct(
|
|
public readonly string $provider,
|
|
string $message,
|
|
public readonly ?int $statusCode = null,
|
|
public readonly ?int $retryAfterSeconds = null,
|
|
?Throwable $previous = null,
|
|
) {
|
|
parent::__construct($message, $statusCode ?? 0, $previous);
|
|
}
|
|
}
|