-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexceptions.py
More file actions
75 lines (57 loc) · 1.65 KB
/
exceptions.py
File metadata and controls
75 lines (57 loc) · 1.65 KB
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
class VMWareConnectionException(Exception):
"""
Couldn't talk to VMWare. Probably a temporary failure.
"""
pass
class VMWareInvalidInputException(Exception):
"""
Bad input passed in from rest of the system
"""
pass
class VMWareObjectNotFound(Exception):
"""
When we looked for something and it wasn't in vSphere.
"""
pass
class VMWareBadState(Exception):
"""
Something VMWare side isn't in a state that we like the look of.
"""
pass
class VMWareTimeout(Exception):
"""
Something took too long to complete VMWare side.
"""
pass
class VMWareGuestOSException(Exception):
"""
Something went wrong when we were talking to the GuestOS
"""
pass
class VMWareGuestOSTimeoutException(Exception):
"""
The GuestOS didn't respond in a timely manner
"""
pass
class VMWareGuestOSProcessUnknownException(Exception):
"""
Something went wrong when we ran a process on the guest OS, but we can't tell what happened.
"""
pass
class VMWareGuestOSProcessAmbiguousResultException(Exception):
"""
A process run in the OS produced an ambiguous result - i.e. it produced no output, and this can be expected
behaviour. Equally however, this could indicate a silent failure
"""
pass
class VMWareGuestOSProcessBadOutputException(Exception):
"""
A process run in the guest OS did not exit successfully and produced a result that we did not expect. This suggests
an error occurred.
"""
pass
class VMWareCreateDuplicateException(Exception):
"""
We were asked to make something in vSphere which already exists
"""
pass