You are here

public function WebhookMismatchTokenException::__construct in Webhooks 8

MismatchSignatureException constructor.

Parameters

string $token: The webhook token.

string $token_received: The webhook token from the headers.

File

src/Exception/WebhookMismatchTokenException.php, line 20

Class

WebhookMismatchTokenException
Class Webhook Mismatch Token Exception.

Namespace

Drupal\webhooks\Exception

Code

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