def encode(self): if self.name is None: return None else: impl = ErrorCondition() impl.setCondition(Symbol.valueOf(self.name)) impl.setDescription(self.description) impl.setInfo(dat2obj(self.info)) return impl
def __init__(self, name=None, description=None, info=None, impl=None): if impl is None: impl = ErrorCondition(Symbol.valueOf(name), description) if info is not None: impl.setInfo(info) self.impl = impl