fedicrawl/application/src/Fediverse/Providers/ProviderKeyNotFoundError.ts

13 wiersze
266 B
TypeScript

export class ProviderKeyNotFoundError extends Error {
private readonly _key: string
public constructor (key: string) {
super(`Provider with the key ${key} is not registered`)
this._key = key
}
public get key (): string {
return this._key
}
}