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

export class InvalidReportDocumentError extends Error {
  constructor() {
    super();
    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"
};