12 lines
237 B
PHP
12 lines
237 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace app\exception;
|
|
|
|
final class ApiError extends \RuntimeException
|
|
{
|
|
public function __construct(public readonly int $status, string $message)
|
|
{
|
|
parent::__construct($message);
|
|
}
|
|
}
|