Skip to content

basalt / webhooks/src / WebhookEndpointIdInUseError

Class: WebhookEndpointIdInUseError ​

Defined in: webhooks/src/store.ts:50

The endpoint id is held by a different scope (another tenant, or a global endpoint when adding a tenant one, or vice versa). Thrown by MemoryWebhookStore.add and by WebhookManager.register(); the SQL stores (@basaltkit/webhooks-sqlite, @basaltkit/webhooks-prisma) throw and re-export this same class, so instanceof holds across all of them.

Extends ​

  • Error

Constructors ​

Constructor ​

> new WebhookEndpointIdInUseError(id): WebhookEndpointIdInUseError

Defined in: webhooks/src/store.ts:53

Parameters ​

id ​

string

Returns ​

WebhookEndpointIdInUseError

Overrides ​

Error.constructor

Properties ​

code ​

> readonly code: "WEBHOOK_ENDPOINT_ID_IN_USE" = 'WEBHOOK_ENDPOINT_ID_IN_USE'

Defined in: webhooks/src/store.ts:51


status ​

> readonly status: 409 = 409

Defined in: webhooks/src/store.ts:52

Released under the MIT License.