You are here

class WebhookIncomingEndpointNotFoundException in Webhooks 8

Class Webhook Incoming Endpoint Not Found Exception.

@package Drupal\webhooks\Exception

Hierarchy

Expanded class hierarchy of WebhookIncomingEndpointNotFoundException

2 files declare their use of WebhookIncomingEndpointNotFoundException
WebhookController.php in src/Controller/WebhookController.php
WebhooksService.php in src/WebhooksService.php

File

src/Exception/WebhookIncomingEndpointNotFoundException.php, line 10

Namespace

Drupal\webhooks\Exception
View source
class WebhookIncomingEndpointNotFoundException extends \Exception {

  /**
   * WebhookIncomingEndpointNotFoundException constructor.
   *
   * @param string $incoming_webhook_name
   *   The name of the incoming webhook.
   */
  public function __construct($incoming_webhook_name) {
    $message = sprintf('No incoming webhook has been configured with the machine name "%s".', $incoming_webhook_name);
    parent::__construct($message);
  }

}

Members

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