export class SocialDomainError extends Error { readonly name: string = 'SocialDomainError'; constructor(message: string) { super(message); Object.setPrototypeOf(this, new.target.prototype); } }