MCPcopy Create free account
hub / github.com/ascorbic/astro-loaders / constructor

Function constructor

packages/feed/src/feed-errors.ts:5–17  ·  view source on GitHub ↗
(
    message: string,
    public readonly url: string,
    options?: { cause?: unknown },
  )

Source from the content-addressed store, hash-verified

3 */
4export abstract class FeedError extends Error {
5 constructor(
6 message: string,
7 public readonly url: string,
8 options?: { cause?: unknown },
9 ) {
10 // Construct the full message with URL context
11 const fullMessage = `${message} (URL: ${url})${
12 options?.cause instanceof Error ? ` - ${options.cause.message}` : ""
13 }`;
14
15 super(fullMessage, options);
16 this.name = this.constructor.name;
17 }
18}
19
20/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected