import type { CommonDomainErrorKind, DomainError } from '@core/shared/errors/DomainError';

/**
 * Domain Error: SocialDomainError
 *
 * Implements the shared DomainError contract for social domain failures.
 */
export class SocialDomainError extends Error implements DomainError<CommonDomainErrorKind> {
  readonly name = 'SocialDomainError';
  readonly type = 'domain' as const;
  readonly context = 'social';
  readonly kind: CommonDomainErrorKind;
 
  constructor(message: string, kind: CommonDomainErrorKind = 'validation') {
    super(message);
    this.kind = kind;
    Object.setPrototypeOf(this, new.target.prototype);
  }
}