aboutsummaryrefslogtreecommitdiff
path: root/src/errors.ts
blob: 822f98e05cb56e22e236ebfb2fffbc7f1b1c286c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
export class BranchNotFoundError extends Error {
  constructor() {
    super();
    this.name = "BranchNotFoundError";
    this.message = "Branch not found";
  }
}

export class InvalidReportDocumentError extends Error {
  constructor() {
    super();
    this.name = "InvalidReportDocumentError";
    this.message = "Invalid report document";
  }
}

export const Messages = {
  FileNotFound: "File not found",
  FileTooLarge: "Uploaded file is too large",
  InvalidFormat: "Invalid reporting format",
  InvalidToken: "Invalid token",
  UnknownError: "Unknown error occurred",
};