Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

729 B
Raw Blame
export class FileSystemError extends Error {
  constructor(msg: string) {
    super(msg);
    this.name = 'FileSystem Error';
  }
}

export class UserError extends Error {
  constructor(msg: string) {
    super(msg);
    this.name = 'User Error';
  }
}

export class AlreadyCheckedOutError extends Error {
  readonly checkedOutBy: string;
  readonly id: string;
  constructor(
    msg: string,
    { checkedOutBy, id }: { checkedOutBy: string; id: string }
  ) {
    super(msg);
    this.name = 'Already Checked Out Error';
    this.checkedOutBy = checkedOutBy;
    this.id = id;
  }
}

export class NotImplementedError extends Error {
  constructor(msg?: string) {
    super(msg);
    this.name = 'Not Implemented Error';
  }
}