-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexceptions.py
93 lines (57 loc) · 1.53 KB
/
exceptions.py
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
"""
Individual exceptions for driver_controller
"""
try:
exc = ExceptionGroup
except NameError:
exc = ReferenceError
class ApplicationNameError(NameError):
"""
App with pointed out name not exist.
"""
class ApplicationNotExist(SystemError):
"""
Application, which you point outed is not exist
"""
class UnsupportedFormat(FileExistsError):
"""
Method screenshot support only ['png', 'jpg', 'ico', 'gif', 'pict'] formats.
"""
class ConfirmationError(TypeError):
"""
If confirmation is [False].
"""
class InvalidExtension(NameError):
"""
No extension specified.
"""
class WifiNameConnectError(NameError):
"""
Password or SSID/Wi-fi name of Network is not right.
"""
class ValueBrightnessError(ValueError, TypeError):
"""
Value is not type [int].
"""
class WifiValueError(ValueError, BaseException):
"""
There is no wi-fi network in util "bunch keys".
"""
class ExtensionError(ValueError):
pass
class PathError(FileNotFoundError):
pass
class CallError(exc):
pass
class RgbValueError(ValueError):
"""No available color for bg"""
pass
class OpenPossibilityError(FileExistsError):
"""Can not open file in that app."""
class ScreenErrorIndex(IndexError):
"""Screen ID not exist."""
class ScreenWarning(Warning):
"""Not support bridge with objective-c and python via IOKit."""
class BluetoothConnectionError(ConnectionRefusedError):
"""Specify not right address to pair."""
# END FILE