MCPcopy Create free account
hub / github.com/Noumena-Network/code / constructor

Method constructor

src/tools/WebFetchTool/utils.ts:23–26  ·  view source on GitHub ↗
(domain: string)

Source from the content-addressed store, hash-verified

21// Custom error classes for domain blocking
22class DomainBlockedError extends Error {
23 constructor(domain: string) {
24 super(`Code is unable to fetch from ${domain}`)
25 this.name = 'DomainBlockedError'
26 }
27}
28
29class DomainCheckFailedError extends Error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected