Ejemplo n.º 1
0
 def __init__(self, paramName, value):
     ServiceError.__init__(self, "ERR-P4","Date/Time %s = '%s' is not valid " % (paramName, value))
Ejemplo n.º 2
0
 def __init__(self, paramName=""):
     ServiceError.__init__(self, "ERR-P3","Expected parameter '%s' is empty"%paramName)
Ejemplo n.º 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)
Ejemplo n.º 4
0
 def __init__(self, paramName, expected, got):
     ServiceError.__init__(self, "ERR-P2","'%s': Expected '%s', got instead '%s'" % (paramName, expected, got))
Ejemplo n.º 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')