fedicrawl/application/src/Fediverse/Providers/ProviderKeyAlreadyRegistere...

13 wiersze
279 B
TypeScript

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