2
3 _default = "Generic copr exception"
4 _code = 500
5
6 - def __init__(self, message=None, code=None, **kwargs):
10
13
16
17
22
23
25
26 _default = "You don't have required permission"
27 _code = 403
28
29
34
35
37 """ Generic DB conflict """
38 _default = "Conflicting request"
39 _code = 409
40
41
46
47
52
53
55 """When there is not enough space left on the server for the src rpm."""
56 _default = "Not enough space left"
57 _code = 500
58
59
62
63
66
67
70
71
73 _default = "Non-admin cannot create persistent project."
74 _code = 403
75
76
78 _default = "Non-admin cannot disable auto-prunning."
79 _code = 403
80
81 InsufficientRightsException = AccessRestricted
82
83
99
100
103
104
107
108
111