def write(self, oprot):
    oprot.writeStructBegin('TApplicationException')
    if self.message is not None:
      oprot.writeFieldBegin('message', TType.STRING, 1)
      oprot.writeString(self.message)
      oprot.writeFieldEnd()
    if self.type is not None:
      oprot.writeFieldBegin('type', TType.I32, 2)
      oprot.writeI32(self.type)
      oprot.writeFieldEnd()
    oprot.writeFieldStop()
    oprot.writeStructEnd()
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/thrift-0.9.1/src/Thrift.py/TApplicationException.write/original