fedicrawl/application/src/Fediverse/RobotsTxt/RobotsTxtError.ts

8 wiersze
191 B
TypeScript

export class RobotsTxtError extends Error {
public readonly url: string
public constructor (url: URL) {
super('Request was blocked by robots.txt')
this.url = url.toString()
}
}