<?php

declare(strict_types=1);

namespace ImovelZapAi\Publishing\Connectors\GroupOlx\Domain\Exceptions;

use RuntimeException;

final class GroupOlxXmlBuildException extends RuntimeException
{
    public static function emptyFeed(): self
    {
        return new self('Feed VRSync deve conter ao menos um imóvel.');
    }

    public static function invalidUtf8(): self
    {
        return new self('XML VRSync deve estar em UTF-8 válido.');
    }

    public static function serializationFailed(string $reason): self
    {
        return new self("Falha ao gerar XML VRSync: {$reason}");
    }
}
