Exemple #1
0
 def __init__(self, paramName, value):
     ServiceError.__init__(self, "ERR-P4","Date/Time %s = '%s' is not valid " % (paramName, value))
Exemple #2
0
 def __init__(self, paramName=""):
     ServiceError.__init__(self, "ERR-P3","Expected parameter '%s' is empty"%paramName)
Exemple #3
0
 def _handleSet(self):
     if (self._value ==""):
         raise ServiceError("ERR-E1",
                            "The restricted disclaimer cannot be empty")
     minfo = info.HelperMaKaCInfo.getMaKaCInfoInstance()
     minfo.setProtectionDisclaimerRestricted(self._value)
Exemple #4
0
 def __init__(self, paramName, expected, got):
     ServiceError.__init__(self, "ERR-P2","'%s': Expected '%s', got instead '%s'" % (paramName, expected, got))
Exemple #5
0
 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')