FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-webuntis/webuntis/errors.py at master · python-webuntis/python-webuntis · GitHub
python-webuntis
/
python-webuntis
Public
Notifications
You must be signed in to change notification settings
Fork
21
Star
81
Code
Issues
4
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-webuntis
/
webuntis
/
errors.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
47 lines (29 loc) · 1.11 KB
Breadcrumbs
python-webuntis
/
webuntis
/
errors.py
Copy path
File metadata and controls
executable file
·
47 lines (29 loc) · 1.11 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
"""
This file is part of python-webuntis
:copyright: (c) 2013 by Markus Unterwaditzer.
:license: BSD, see LICENSE for more details.
"""
class
Error
(
Exception
):
"""Superclass for all `python-webuntis`-specific errors, never gets raised
directly."""
class
RemoteError
(
Error
,
IOError
):
"""There was some kind of error while interacting with the server."""
#: The decoded JSON request which lead to this error, if available.
request
=
None
#: The decoded JSON response/result which lead to this error, if available.
result
=
None
#: The error code, if available.
code
=
None
class
MethodNotFoundError
(
RemoteError
):
"""The JSON-RPC method was not found. This really should not occur."""
pass
class
AuthError
(
RemoteError
):
"""Errors while logging in."""
pass
class
BadCredentialsError
(
AuthError
,
ValueError
):
"""Invalid or missing username or password."""
pass
class
NotLoggedInError
(
AuthError
):
"""The session expired or we never logged in."""
class
DateNotAllowed
(
RemoteError
):
"""The selected date range (for timetable) is not allowed."""
Back
|
FazBrowse Home
|
New Git URL