-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patherrors.go
49 lines (33 loc) · 879 Bytes
/
errors.go
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package eggchan
type UnauthorizedError struct{}
func (e UnauthorizedError) Error() string {
return "Unauthorized"
}
type CategoryNotFoundError struct{}
func (e CategoryNotFoundError) Error() string {
return "Category not found"
}
type BoardNotFoundError struct{}
func (e BoardNotFoundError) Error() string {
return "Board not found"
}
type ThreadNotFoundError struct{}
func (e ThreadNotFoundError) Error() string {
return "Thread not found"
}
type UserNotFoundError struct{}
func (e UserNotFoundError) Error() string {
return "User not found"
}
type DatabaseError struct{}
func (e DatabaseError) Error() string {
return "Database error"
}
type PermissionDeniedError struct{}
func (e PermissionDeniedError) Error() string {
return "Permission denied"
}
type UnimplementedError struct{}
func (e UnimplementedError) Error() string {
return "Unimplemented"
}