<?php

declare(strict_types=1);

namespace App\Domain\Sysapi\Exceptions;

/**
 * Payload JSON encode edilemedi veya gerekli alan eksik.
 */
class SysapiInvalidPayloadException extends SysapiException
{
    public static function forCommand(string $command, string $reason): self
    {
        return new self(
            message: "Sysapi payload geçersiz ({$command}): {$reason}",
            command: $command,
        );
    }
}
