export class DuplicateSlugError extends Error {
  constructor() {
    super('A page with this slug already exists');
    this.name = 'DuplicateSlugError';
  }
}

export class PageNotFoundError extends Error {
  constructor() {
    super('Page not found');
    this.name = 'PageNotFoundError';
  }
}

export class PageNotPublishedError extends Error {
  constructor() {
    super('Page is not published');
    this.name = 'PageNotPublishedError';
  }
}
