Ctrl K
ComunidadGuías…

app/Exceptions/InvalidWebhookPayloadException.php

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
<?php

namespace App\Exceptions;

use Exception;

/**
 * A webhook payload field has a wrong type or format.
 *
 * Webhook handlers catch this exception and send a clean "Nothing to do."
 * response. The request does not deploy anything.
 */
class InvalidWebhookPayloadException extends Exception
{
    public static function forField(string $field): self
    {
        return new self("Nothing to do. Invalid '{$field}' in the request.");
    }
}