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

8 wiersze
191 B
TypeScript
Czysty Zwykły widok Historia

2022-11-22 15:37:11 +00:00
export class RobotsTxtError extends Error {
2022-11-29 13:11:27 +00:00
public readonly url: string
public constructor (url: URL) {
2022-11-22 15:37:11 +00:00
super('Request was blocked by robots.txt')
2022-11-29 13:11:27 +00:00
this.url = url.toString()
2022-11-22 15:37:11 +00:00
}
}