-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.py
More file actions
45 lines (26 loc) · 680 Bytes
/
Copy patherrors.py
File metadata and controls
45 lines (26 loc) · 680 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
class FormatError(Exception):
pass
class NoSolutionFoundError(Exception):
pass
class UnsupportedProblemType(Exception):
pass
class LayoutError(Exception):
pass
class WrongAnswer(Exception):
def __init__(self, prob_id: str, ans):
self.id = prob_id
self.answer = ans
class ConfigError(Exception):
pass
class HashMismatch(Exception):
pass
class Unauthorized(Exception):
pass
class GenericOpenEduError(Exception):
error_code: str
message: str
def __init__(self, error_code: str, message: str):
self.error_code = error_code
self.message = message
class ReloginReceived(Exception):
pass