You are here

class WebhookMismatchTokenException in Webhooks 8

Class Webhook Mismatch Token Exception.

@package Drupal\webhooks\Exception

Hierarchy

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\Exception
View 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

Namesort descending Modifiers Type Description Overrides
WebhookMismatchTokenException::__construct public function MismatchSignatureException constructor.