<?php

namespace App\Exceptions;

use RuntimeException;

/** Higgsfield rejected the render. The job logs the vendor body and can fall back to Veo. */
class HiggsfieldRenderFailedException extends RuntimeException
{
    public function __construct(
        string $message,
        public readonly ?string $requestId = null,
        public readonly ?string $statusUrl = null,
        public readonly ?int $httpStatus = null,
        public readonly mixed $body = null,
        public readonly string $reason = 'failed',
    ) {
        parent::__construct($message);
    }
}
