<?php

declare(strict_types=1);

namespace ImovelZapAi\Importing\Domain\Exceptions;

final class ImportParseException extends ImportException
{
    public static function unsafeXml(string $reason): self
    {
        return new self("XML rejeitado por segurança: {$reason}");
    }

    public static function limitExceeded(string $limit): self
    {
        return new self("Limite de parse excedido: {$limit}");
    }

    public static function malformed(string $detail): self
    {
        return new self("XML malformado: {$detail}");
    }
}
