def __init__(self, paramName, value): ServiceError.__init__(self, "ERR-P4","Date/Time %s = '%s' is not valid " % (paramName, value))
def __init__(self, paramName=""): ServiceError.__init__(self, "ERR-P3","Expected parameter '%s' is empty"%paramName)
def _handleSet(self): if (self._value ==""): raise ServiceError("ERR-E1", "The restricted disclaimer cannot be empty") minfo = info.HelperMaKaCInfo.getMaKaCInfoInstance() minfo.setProtectionDisclaimerRestricted(self._value)
def __init__(self, paramName, expected, got): ServiceError.__init__(self, "ERR-P2","'%s': Expected '%s', got instead '%s'" % (paramName, expected, got))
def _checkParams(self): if 'userData' in self._params: pm = ParameterManager(self._params) self._userData = pm.extract("userData", pType=dict, allowEmpty = True) else: raise ServiceError("ERR-E6", '"userData" parameter missing')