Skip to content

Commit dda3b0b

Browse files
committed
doc: Add more (brief) documentation on some Exceptions
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
1 parent 68d97dd commit dda3b0b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

common/Exceptions.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ def __str__(self):
6767
return "Kernel module %s not loaded" % (self.module)
6868

6969
class KernelConfigNotSet(Exception):
70+
'''
71+
A kernel config option needed by the test was not set for the running
72+
kernel.
73+
'''
7074
def __init__(self, opt):
7175
self.opt = opt
7276
def __str__(self):
@@ -85,6 +89,9 @@ def __str__(self):
8589
return "Soft lockup (machine in state %s): %s" % (self.state, self.log)
8690

8791
class KernelHardLockup(Exception):
92+
'''
93+
We detected a hard lockup from the running kernel.
94+
'''
8895
def __init__(self, state, log):
8996
self.log = log
9097
self.state = state
@@ -106,6 +113,9 @@ def __str__(self):
106113
return "Kernel bug in state %s: %s" % (self.state, self.log)
107114

108115
class SkibootAssert(Exception):
116+
'''
117+
We detected an assert from OPAL (skiboot) firmware.
118+
'''
109119
def __init__(self, state, log):
110120
self.log = log
111121
self.state = state

0 commit comments

Comments
 (0)