本文整理匯總了Python中thrift.Thrift.TMessageType.EXCEPTION屬性的典型用法代碼示例。如果您正苦於以下問題:Python TMessageType.EXCEPTION屬性的具體用法?Python TMessageType.EXCEPTION怎麽用?Python TMessageType.EXCEPTION使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類thrift.Thrift.TMessageType
的用法示例。
在下文中一共展示了TMessageType.EXCEPTION屬性的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: recv_createCredential
# 需要導入模塊: from thrift.Thrift import TMessageType [as 別名]
# 或者: from thrift.Thrift.TMessageType import EXCEPTION [as 別名]
def recv_createCredential(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = createCredential_result()
result.read(iprot)
iprot.readMessageEnd()
if result.success is not None:
return result.success
if result.se is not None:
raise result.se
raise TApplicationException(TApplicationException.MISSING_RESULT, "createCredential failed: unknown result");
示例2: recv_getServerVersion
# 需要導入模塊: from thrift.Thrift import TMessageType [as 別名]
# 或者: from thrift.Thrift.TMessageType import EXCEPTION [as 別名]
def recv_getServerVersion(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = getServerVersion_result()
result.read(iprot)
iprot.readMessageEnd()
if result.success is not None:
return result.success
if result.se is not None:
raise result.se
raise TApplicationException(TApplicationException.MISSING_RESULT, "getServerVersion failed: unknown result");
示例3: recv_get
# 需要導入模塊: from thrift.Thrift import TMessageType [as 別名]
# 或者: from thrift.Thrift.TMessageType import EXCEPTION [as 別名]
def recv_get(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = get_result()
result.read(iprot)
iprot.readMessageEnd()
if result.success is not None:
return result.success
if result.se is not None:
raise result.se
raise TApplicationException(TApplicationException.MISSING_RESULT, "get failed: unknown result");
示例4: recv_put
# 需要導入模塊: from thrift.Thrift import TMessageType [as 別名]
# 或者: from thrift.Thrift.TMessageType import EXCEPTION [as 別名]
def recv_put(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = put_result()
result.read(iprot)
iprot.readMessageEnd()
if result.success is not None:
return result.success
if result.se is not None:
raise result.se
raise TApplicationException(TApplicationException.MISSING_RESULT, "put failed: unknown result");
示例5: recv_increment
# 需要導入模塊: from thrift.Thrift import TMessageType [as 別名]
# 或者: from thrift.Thrift.TMessageType import EXCEPTION [as 別名]
def recv_increment(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = increment_result()
result.read(iprot)
iprot.readMessageEnd()
if result.success is not None:
return result.success
if result.se is not None:
raise result.se
raise TApplicationException(TApplicationException.MISSING_RESULT, "increment failed: unknown result");
示例6: recv_remove
# 需要導入模塊: from thrift.Thrift import TMessageType [as 別名]
# 或者: from thrift.Thrift.TMessageType import EXCEPTION [as 別名]
def recv_remove(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = remove_result()
result.read(iprot)
iprot.readMessageEnd()
if result.success is not None:
return result.success
if result.se is not None:
raise result.se
raise TApplicationException(TApplicationException.MISSING_RESULT, "remove failed: unknown result");
示例7: recv_batch
# 需要導入模塊: from thrift.Thrift import TMessageType [as 別名]
# 或者: from thrift.Thrift.TMessageType import EXCEPTION [as 別名]
def recv_batch(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = batch_result()
result.read(iprot)
iprot.readMessageEnd()
if result.success is not None:
return result.success
if result.se is not None:
raise result.se
raise TApplicationException(TApplicationException.MISSING_RESULT, "batch failed: unknown result");
示例8: recv_batchCheckAndMutate
# 需要導入模塊: from thrift.Thrift import TMessageType [as 別名]
# 或者: from thrift.Thrift.TMessageType import EXCEPTION [as 別名]
def recv_batchCheckAndMutate(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = batchCheckAndMutate_result()
result.read(iprot)
iprot.readMessageEnd()
if result.success is not None:
return result.success
if result.se is not None:
raise result.se
raise TApplicationException(TApplicationException.MISSING_RESULT, "batchCheckAndMutate failed: unknown result");
示例9: recv_putToRebuildIndex
# 需要導入模塊: from thrift.Thrift import TMessageType [as 別名]
# 或者: from thrift.Thrift.TMessageType import EXCEPTION [as 別名]
def recv_putToRebuildIndex(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = putToRebuildIndex_result()
result.read(iprot)
iprot.readMessageEnd()
if result.success is not None:
return result.success
if result.se is not None:
raise result.se
raise TApplicationException(TApplicationException.MISSING_RESULT, "putToRebuildIndex failed: unknown result");
示例10: recv_partialAllowedBatch
# 需要導入模塊: from thrift.Thrift import TMessageType [as 別名]
# 或者: from thrift.Thrift.TMessageType import EXCEPTION [as 別名]
def recv_partialAllowedBatch(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = partialAllowedBatch_result()
result.read(iprot)
iprot.readMessageEnd()
if result.success is not None:
return result.success
if result.se is not None:
raise result.se
raise TApplicationException(TApplicationException.MISSING_RESULT, "partialAllowedBatch failed: unknown result");
示例11: recv_sendMessage
# 需要導入模塊: from thrift.Thrift import TMessageType [as 別名]
# 或者: from thrift.Thrift.TMessageType import EXCEPTION [as 別名]
def recv_sendMessage(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = sendMessage_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, "sendMessage failed: unknown result");
示例12: recv_sendMessageBatch
# 需要導入模塊: from thrift.Thrift import TMessageType [as 別名]
# 或者: from thrift.Thrift.TMessageType import EXCEPTION [as 別名]
def recv_sendMessageBatch(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = sendMessageBatch_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, "sendMessageBatch failed: unknown result");
示例13: recv_changeMessageVisibilitySecondsBatch
# 需要導入模塊: from thrift.Thrift import TMessageType [as 別名]
# 或者: from thrift.Thrift.TMessageType import EXCEPTION [as 別名]
def recv_changeMessageVisibilitySecondsBatch(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = changeMessageVisibilitySecondsBatch_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, "changeMessageVisibilitySecondsBatch failed: unknown result");
示例14: recv_deleteMessageBatch
# 需要導入模塊: from thrift.Thrift import TMessageType [as 別名]
# 或者: from thrift.Thrift.TMessageType import EXCEPTION [as 別名]
def recv_deleteMessageBatch(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = deleteMessageBatch_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, "deleteMessageBatch failed: unknown result");
示例15: recv_createQueue
# 需要導入模塊: from thrift.Thrift import TMessageType [as 別名]
# 或者: from thrift.Thrift.TMessageType import EXCEPTION [as 別名]
def recv_createQueue(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = createQueue_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, "createQueue failed: unknown result");