2019-08-05 10:52:10 +00:00
|
|
|
"""
|
|
|
|
Thrasher base class
|
|
|
|
"""
|
|
|
|
class Thrasher(object):
|
|
|
|
|
2019-09-27 03:39:00 +00:00
|
|
|
def __init__(self, n):
|
2019-08-05 10:52:10 +00:00
|
|
|
super(Thrasher, self).__init__()
|
2019-09-27 03:39:00 +00:00
|
|
|
self._exception = None
|
|
|
|
self._name = n
|
2019-08-05 10:52:10 +00:00
|
|
|
|
|
|
|
@property
|
|
|
|
def exception(self):
|
|
|
|
return self._exception
|
|
|
|
|
|
|
|
@exception.setter
|
|
|
|
def exception(self, e):
|
|
|
|
self._exception = e
|
2019-09-27 03:39:00 +00:00
|
|
|
|
|
|
|
@property
|
|
|
|
def name(self):
|
|
|
|
return self._name
|
|
|
|
|
|
|
|
@name.setter
|
|
|
|
def name(self, n):
|
|
|
|
self._name = n
|