<?php

namespace Modules\Shared\Bnfexpress\Exceptions;

use RuntimeException;

/**
 * Thrown when bnfexpress's admin API returns a non-2xx response or the
 * request fails to connect. Carries the gateway's own {"detail": "..."}
 * message (falling back to a generic one) rather than a bare status code.
 */
class BnfexpressApiException extends RuntimeException
{
    public function __construct(string $message, public readonly int $status = 0)
    {
        parent::__construct($message);
    }
}
