(
message: string,
public readonly url: string,
options?: { cause?: unknown },
)
| 3 | */ |
| 4 | export 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 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected