Exemplo n.º 1
0
    def recv_Log(self, iprot, mtype, rseqid):
        """
        Called when the result of the log request was received.
        """
        if mtype == TMessageType.EXCEPTION:
            result = TApplicationException()
        else:
            result = scribe.Log_result()

        result.read(iprot)
        iprot.readMessageEnd()

        try:
            d = self._reqs.pop(rseqid)
        except KeyError:
            log.err(result, "Unexpected log result")

        if isinstance(result, Exception):
            d.errback(result)
        elif result.success is not None:
            d.callback(result.success)
        else:
            d.errback(TApplicationException(
                TApplicationException.MISSING_RESULT,
                'Log failed: unknown result'))
 def recv_basePing(self, iprot, mtype, rseqid):
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(iprot)
     iprot.readMessageEnd()
     raise x
   result = basePing_result()
   result.read(iprot)
   iprot.readMessageEnd()
   return
 def recv_disconnect(self):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = disconnect_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   return
Exemplo n.º 4
0
 def recv_competitor_status(self):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = competitor_status_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   return
Exemplo n.º 5
0
 def recv_remoteDirectoryListing(self):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = remoteDirectoryListing_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   return
Exemplo n.º 6
0
 def recv_send_measure_info(self, ):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = send_measure_info_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   return
Exemplo n.º 7
0
 def recv_start_exporting(self, ):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = start_exporting_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   return
Exemplo n.º 8
0
 def recv_registe_device(self, ):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = registe_device_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   return
Exemplo n.º 9
0
 def recv_newChunkServer(self):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = newChunkServer_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   return
 def recv_changeVisitorApplicationEnvironment(self):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = changeVisitorApplicationEnvironment_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   return
 def recv_updateDialogState(self):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = updateDialogState_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   return
Exemplo n.º 12
0
 def recv_ping(self, iprot, mtype, rseqid):
   d = self._reqs.pop(rseqid)
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(iprot)
     iprot.readMessageEnd()
     return d.errback(x)
   result = ping_result()
   result.read(iprot)
   iprot.readMessageEnd()
   return d.callback(None)
 def recv_InterfaceExists(self):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = InterfaceExists_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   return
Exemplo n.º 14
0
 def recv_clusterForNode(self):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = clusterForNode_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   return
Exemplo n.º 15
0
 def recv_ping(self, iprot, mtype, rseqid):
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(iprot)
     iprot.readMessageEnd()
     raise x
   result = ping_result()
   result.read(iprot)
   iprot.readMessageEnd()
   if result.success is not None:
     return result.success
   raise TApplicationException(TApplicationException.MISSING_RESULT, "ping failed: unknown result")
Exemplo n.º 16
0
 def recv_reportExecutorThroughput(self):
   iprot = self._iprot
   (fname, mtype, rseqid) = iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(iprot)
     iprot.readMessageEnd()
     raise x
   result = reportExecutorThroughput_result()
   result.read(iprot)
   iprot.readMessageEnd()
   return
Exemplo n.º 17
0
 def recv_methodWithDefaultArgs(self):
   iprot = self._iprot
   (fname, mtype, rseqid) = iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(iprot)
     iprot.readMessageEnd()
     raise x
   result = methodWithDefaultArgs_result()
   result.read(iprot)
   iprot.readMessageEnd()
   return
Exemplo n.º 18
0
 def recv_create(self):
   iprot = self._iprot
   (fname, mtype, rseqid) = iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(iprot)
     iprot.readMessageEnd()
     raise x
   result = create_result()
   result.read(iprot)
   iprot.readMessageEnd()
   return
Exemplo n.º 19
0
 def recv_put_string(self,):
     (fname, mtype, rseqid) = self._iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(self._iprot)
         self._iprot.readMessageEnd()
         raise x
     result = put_string_result()
     result.read(self._iprot)
     self._iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     raise TApplicationException(TApplicationException.MISSING_RESULT, "put_string failed: unknown result")
Exemplo n.º 20
0
 def recv_StoreNumeric(self,):
     (fname, mtype, rseqid) = self._iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(self._iprot)
         self._iprot.readMessageEnd()
         raise x
     result = StoreNumeric_result()
     result.read(self._iprot)
     self._iprot.readMessageEnd()
     if result.exc is not None:
         raise result.exc
     return
Exemplo n.º 21
0
 def recv_archive(self, ):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = archive_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   if result.e is not None:
     raise result.e
   return
Exemplo n.º 22
0
 def recv_getStruct(self, iprot, mtype, rseqid):
   d = self._reqs.pop(rseqid)
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(iprot)
     iprot.readMessageEnd()
     return d.errback(x)
   result = getStruct_result()
   result.read(iprot)
   iprot.readMessageEnd()
   if result.success is not None:
     return d.callback(result.success)
   return d.errback(TApplicationException(TApplicationException.MISSING_RESULT, "getStruct failed: unknown result"))
Exemplo n.º 23
0
 def recv_storeTopAnnotations(self):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = storeTopAnnotations_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   if result.e is not None:
     raise result.e
   return
Exemplo n.º 24
0
 def recv_InitUserDirectories(self, ):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = InitUserDirectories_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   if result.exception_file_system is not None:
     raise result.exception_file_system
   return
Exemplo n.º 25
0
 def recv_power_battery_percent(self):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = power_battery_percent_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   if result.success is not None:
     return result.success
   raise TApplicationException(TApplicationException.MISSING_RESULT, "power_battery_percent failed: unknown result");
Exemplo n.º 26
0
 def recv_storage_capacity_kb(self):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = storage_capacity_kb_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   if result.success is not None:
     return result.success
   raise TApplicationException(TApplicationException.MISSING_RESULT, "storage_capacity_kb failed: unknown result");
Exemplo n.º 27
0
 def recv_getDepartmentEmployees(self):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = getDepartmentEmployees_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   if result.success is not None:
     return result.success
   raise TApplicationException(TApplicationException.MISSING_RESULT, "getDepartmentEmployees failed: unknown result");
Exemplo n.º 28
0
 def recv_RemoveMaintenance(self, ):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = RemoveMaintenance_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   if result.exception_file_system is not None:
     raise result.exception_file_system
   return
Exemplo n.º 29
0
 def recv_network_get_ipv4(self):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = network_get_ipv4_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   if result.success is not None:
     return result.success
   raise TApplicationException(TApplicationException.MISSING_RESULT, "network_get_ipv4 failed: unknown result");
 def recv_SendMail(self):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = SendMail_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   if result.rpcException is not None:
     raise result.rpcException
   return
 def _recv_notify(self, ctx):
     self._iprot.read_response_headers(ctx)
     _, mtype, _ = self._iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(self._iprot)
         self._iprot.readMessageEnd()
         if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
             raise TTransportException(
                 type=TTransportExceptionType.RESPONSE_TOO_LARGE,
                 message=x.message)
         raise x
     result = notify_result()
     result.read(self._iprot)
     self._iprot.readMessageEnd()
     if result.e is not None:
         raise result.e
     return
Exemplo n.º 32
0
 def recv_declaredExceptionMethod(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = declaredExceptionMethod_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.xwamap is not None:
         raise result.xwamap
     raise TApplicationException(
         TApplicationException.MISSING_RESULT,
         "declaredExceptionMethod failed: unknown result")
Exemplo n.º 33
0
 def recv_GetExecSummary(self, ):
     (fname, mtype, rseqid) = self._iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(self._iprot)
         self._iprot.readMessageEnd()
         raise x
     result = GetExecSummary_result()
     result.read(self._iprot)
     self._iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.error is not None:
         raise result.error
     if result.error2 is not None:
         raise result.error2
     raise TApplicationException(TApplicationException.MISSING_RESULT,
                                 "GetExecSummary failed: unknown result")
Exemplo n.º 34
0
 def recv_getActivePurchaseVersions(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = getActivePurchaseVersions_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.e is not None:
         raise result.e
     raise TApplicationException(
         TApplicationException.MISSING_RESULT,
         "getActivePurchaseVersions failed: unknown result")
Exemplo n.º 35
0
 def recv_getLibraryByIdConsumer(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = getLibraryByIdConsumer_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.sErrorNotFoundE is not None:
         raise result.sErrorNotFoundE
     if result.sErrorSystemE is not None:
         raise result.sErrorSystemE
     raise TApplicationException(TApplicationException.MISSING_RESULT, "getLibraryByIdConsumer failed: unknown result")
 def recv_checkQrCodeVerified(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = checkQrCodeVerified_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.e is not None:
         raise result.e
     raise TApplicationException(
         TApplicationException.MISSING_RESULT,
         "checkQrCodeVerified failed: unknown result")
Exemplo n.º 37
0
 def recv_multiGetLastReadMessageIds(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = multiGetLastReadMessageIds_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.e is not None:
         raise result.e
     raise TApplicationException(
         TApplicationException.MISSING_RESULT,
         "multiGetLastReadMessageIds failed: unknown result")
Exemplo n.º 38
0
 def recv_createAccount(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = createAccount_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.e1 is not None:
         raise result.e1
     if result.e2 is not None:
         raise result.e2
     raise TApplicationException(TApplicationException.MISSING_RESULT, "createAccount failed: unknown result")
 def recv_findStreamId(self):
     (fname, mtype, rseqid) = self._iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(self._iprot)
         self._iprot.readMessageEnd()
         raise x
     result = findStreamId_result()
     result.read(self._iprot)
     self._iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.tnde is not None:
         raise result.tnde
     if result.se is not None:
         raise result.se
     raise TApplicationException(TApplicationException.MISSING_RESULT,
                                 "findStreamId failed: unknown result")
Exemplo n.º 40
0
 def recv_GetRuntimeProfile(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = GetRuntimeProfile_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.error is not None:
         raise result.error
     raise TApplicationException(
         TApplicationException.MISSING_RESULT,
         "GetRuntimeProfile failed: unknown result")
Exemplo n.º 41
0
 def recv_lookupByPhoneNumber(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = lookupByPhoneNumber_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.e is not None:
         raise result.e
     raise TApplicationException(
         TApplicationException.MISSING_RESULT,
         "lookupByPhoneNumber failed: unknown result")
Exemplo n.º 42
0
 def recv_acquireGroupCallRoute(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = acquireGroupCallRoute_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.e is not None:
         raise result.e
     raise TApplicationException(
         TApplicationException.MISSING_RESULT,
         "acquireGroupCallRoute failed: unknown result")
Exemplo n.º 43
0
 def recv_getPersonByUsername(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = getPersonByUsername_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.dataException is not None:
         raise result.dataException
     raise TApplicationException(
         TApplicationException.MISSING_RESULT,
         "getPersonByUsername failed: unknown result")
Exemplo n.º 44
0
 def recv_parseHtml(self):
   iprot = self._iprot
   (fname, mtype, rseqid) = iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(iprot)
     iprot.readMessageEnd()
     raise x
   result = parseHtml_result()
   result.read(iprot)
   iprot.readMessageEnd()
   if result.success is not None:
     return result.success
   if result.namedError is not None:
     raise result.namedError
   if result.ex2 is not None:
     raise result.ex2
   raise TApplicationException(TApplicationException.MISSING_RESULT, "parseHtml failed: unknown result");
Exemplo n.º 45
0
 def recv_getDataSetFileOfVariableAtTimeIndex(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = getDataSetFileOfVariableAtTimeIndex_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.dataAccessException is not None:
         raise result.dataAccessException
     raise TApplicationException(
         TApplicationException.MISSING_RESULT,
         "getDataSetFileOfVariableAtTimeIndex failed: unknown result")
Exemplo n.º 46
0
 def recv_balance(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = balance_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.nsa is not None:
         raise result.nsa
     if result.wk is not None:
         raise result.wk
     raise TApplicationException(TApplicationException.MISSING_RESULT, "balance failed: unknown result")
Exemplo n.º 47
0
 def recv_askForLoan(self):
     (fname, mtype, rseqid) = self._iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(self._iprot)
         self._iprot.readMessageEnd()
         raise x
     result = askForLoan_result()
     result.read(self._iprot)
     self._iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.ig is not None:
         raise result.ig
     if result.ia is not None:
         raise result.ia
     raise TApplicationException(TApplicationException.MISSING_RESULT,
                                 "askForLoan failed: unknown result")
Exemplo n.º 48
0
 def recv_fetch_photo(self):
   iprot = self._iprot
   (fname, mtype, rseqid) = iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(iprot)
     iprot.readMessageEnd()
     raise x
   result = fetch_photo_result()
   result.read(iprot)
   iprot.readMessageEnd()
   if result.success is not None:
     return result.success
   if result.io is not None:
     raise result.io
   if result.big is not None:
     raise result.big
   raise TApplicationException(TApplicationException.MISSING_RESULT, "fetch_photo failed: unknown result");
Exemplo n.º 49
0
 def recv_retrieveRequestToken(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = retrieveRequestToken_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.e is not None:
         raise result.e
     raise TApplicationException(
         TApplicationException.MISSING_RESULT,
         "retrieveRequestToken failed: unknown result")
Exemplo n.º 50
0
 def recv_handleRequest(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = handleRequest_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.endPointUnavailiable is not None:
         raise result.endPointUnavailiable
     if result.thriftException is not None:
         raise result.thriftException
     raise TApplicationException(TApplicationException.MISSING_RESULT, "handleRequest failed: unknown result")
Exemplo n.º 51
0
 def recv_getAdminTagMenus(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = getAdminTagMenus_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.userException is not None:
         raise result.userException
     if result.systemException is not None:
         raise result.systemException
     raise TApplicationException(TApplicationException.MISSING_RESULT,
                                 "getAdminTagMenus failed: unknown result")
Exemplo n.º 52
0
 def _recv_buyAlbum(self, ctx):
     self._iprot.read_response_headers(ctx)
     _, mtype, _ = self._iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(self._iprot)
         self._iprot.readMessageEnd()
         if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
             raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
         raise x
     result = buyAlbum_result()
     result.read(self._iprot)
     self._iprot.readMessageEnd()
     if result.error is not None:
         raise result.error
     if result.success is not None:
         return result.success
     x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "buyAlbum failed: unknown result")
     raise x
Exemplo n.º 53
0
 def _recv_retrieveOpenIdAuthUrlWithDocomo(self, ctx):
     self._iprot.read_response_headers(ctx)
     _, mtype, _ = self._iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(self._iprot)
         self._iprot.readMessageEnd()
         if x.type == TApplicationExceptionType.RESPONSE_TOO_LARGE:
             raise TTransportException(type=TTransportExceptionType.RESPONSE_TOO_LARGE, message=x.message)
         raise x
     result = retrieveOpenIdAuthUrlWithDocomo_result()
     result.read(self._iprot)
     self._iprot.readMessageEnd()
     if result.e is not None:
         raise result.e
     if result.success is not None:
         return result.success
     x = TApplicationException(TApplicationExceptionType.MISSING_RESULT, "retrieveOpenIdAuthUrlWithDocomo failed: unknown result")
     raise x
Exemplo n.º 54
0
 def recv_fetchRecByItem(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = fetchRecByItem_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.sys_exc is not None:
         raise result.sys_exc
     if result.code_exc is not None:
         raise result.code_exc
     raise TApplicationException(TApplicationException.MISSING_RESULT,
                                 "fetchRecByItem failed: unknown result")
Exemplo n.º 55
0
 def recv_uploadBlock(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = uploadBlock_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.lblockx is not None:
         raise result.lblockx
     if result.hashx is not None:
         raise result.hashx
     raise TApplicationException(TApplicationException.MISSING_RESULT,
                                 "uploadBlock failed: unknown result")
 def recv_obtainQueueInfo(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = obtainQueueInfo_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.ue is not None:
         raise result.ue
     if result.te is not None:
         raise result.te
     raise TApplicationException(TApplicationException.MISSING_RESULT,
                                 "obtainQueueInfo failed: unknown result")
Exemplo n.º 57
0
 def recv_get_by_length(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = get_by_length_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.qse is not None:
         raise result.qse
     if result.qce is not None:
         raise result.qce
     raise TApplicationException(TApplicationException.MISSING_RESULT,
                                 "get_by_length failed: unknown result")
Exemplo n.º 58
0
 def recv_get500(self, ):
   (fname, mtype, rseqid) = self._iprot.readMessageBegin()
   if mtype == TMessageType.EXCEPTION:
     x = TApplicationException()
     x.read(self._iprot)
     self._iprot.readMessageEnd()
     raise x
   result = get500_result()
   result.read(self._iprot)
   self._iprot.readMessageEnd()
   if result.success != None:
     return result.success
   if result.f != None:
     raise result.f
   if result.b != None:
     raise result.b
   if result.s != None:
     raise result.s
   raise TApplicationException(TApplicationException.MISSING_RESULT, "get500 failed: unknown result");
Exemplo n.º 59
0
 def recv_Report(self):
     iprot = self._iprot
     if iprot.trans.code != 200:
         raise TApplicationException(
             TApplicationException,
             "Report failed: Received a server error")
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = Report_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     raise TApplicationException(TApplicationException.MISSING_RESULT,
                                 "Report failed: unknown result")
Exemplo n.º 60
0
 def recv_setBrightness(self):
     iprot = self._iprot
     (fname, mtype, rseqid) = iprot.readMessageBegin()
     if mtype == TMessageType.EXCEPTION:
         x = TApplicationException()
         x.read(iprot)
         iprot.readMessageEnd()
         raise x
     result = setBrightness_result()
     result.read(iprot)
     iprot.readMessageEnd()
     if result.success is not None:
         return result.success
     if result.deviceNotActiveException is not None:
         raise result.deviceNotActiveException
     if result.invalidPercentException is not None:
         raise result.invalidPercentException
     raise TApplicationException(TApplicationException.MISSING_RESULT,
                                 "setBrightness failed: unknown result")