-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patherrors.ts
More file actions
29 lines (25 loc) · 691 Bytes
/
errors.ts
File metadata and controls
29 lines (25 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
export class NoFileChanges extends Error {
constructor() {
super('No files changes')
}
}
export class InputRepositoryInvalid extends Error {
constructor(repository: string) {
super(`Input <repository> "${repository}" is invalid`)
}
}
export class InputBranchNotFound extends Error {
constructor(branchName: string) {
super(`Input <branch-name> "${branchName}" not found`)
}
}
export class BranchNotFound extends Error {
constructor(branchName: string) {
super(`Branch "${branchName}" not found`)
}
}
export class BranchCommitNotFound extends Error {
constructor(branchName: string) {
super(`Latest commit on branch "${branchName}" not found`)
}
}