You are here

public function WebhookMismatchSignatureException::__construct in Webhooks 8

MismatchSignatureException constructor.

Parameters

string $signature_received: The received signature.

string $signature_generated: The generated signature.

string $payload: The webhook payload.

File

src/Exception/WebhookMismatchSignatureException.php, line 22

Class

WebhookMismatchSignatureException
Class Webhook Mismatch Signature Exception.

Namespace

Drupal\webhooks\Exception

Code

public function __construct($signature_received, $signature_generated, $payload = '') {
  $message = sprintf('The received signature "%s" does not match the generated signature "%s". Payload: "%s"', $signature_received, $signature_generated, $payload);
  parent::__construct($message);
}