-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathErrorClass.py
More file actions
38 lines (24 loc) · 767 Bytes
/
ErrorClass.py
File metadata and controls
38 lines (24 loc) · 767 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
class Error(Exception):
"""Base class for exeptions"""
pass
class IsNotMondayError(Error):
"""Raised when the datetime object is not Monday"""
pass
class ParseError(Error):
"""Raised when unable to do parsing"""
pass
class IsNotFreeError(Error):
"""Raised when not free"""
pass
class QueryError(Error):
"""Raised when the format is correct, but failed to perform Google Calendar queries"""
pass
class BrowserError(Error):
"""Raised when something is wrong during executing the splinter"""
pass
class OnlineCourseError(Error):
"""Raised when online course is selected"""
pass
class CredentialError(Error):
"""Raised when the credential file (.json file) is invalid or doesn't exist"""
pass