class WebhookMismatchTokenException in Webhooks 8
Class Webhook Mismatch Token Exception.
@package Drupal\webhooks\Exception
Hierarchy
- class \Drupal\webhooks\Exception\WebhookMismatchTokenException extends \Drupal\webhooks\Exception\Exception
Expanded class hierarchy of WebhookMismatchTokenException
1 file declares its use of WebhookMismatchTokenException
- Webhook.php in src/
Webhook.php
File
- src/
Exception/ WebhookMismatchTokenException.php, line 10
Namespace
Drupal\webhooks\ExceptionView source
class WebhookMismatchTokenException extends \Exception {
/**
* MismatchSignatureException constructor.
*
* @param string $token
* The webhook token.
* @param string $token_received
* The webhook token from the headers.
*/
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);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
WebhookMismatchTokenException:: |
public | function | MismatchSignatureException constructor. |