org.apache.thrift.protocol.TProtocolException.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(7.3k)|赞(0)|评价(0)|浏览(247)

本文整理了Java中org.apache.thrift.protocol.TProtocolException.<init>()方法的一些代码示例,展示了TProtocolException.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TProtocolException.<init>()方法的具体详情如下:
包路径:org.apache.thrift.protocol.TProtocolException
类名称:TProtocolException
方法名:<init>

TProtocolException.<init>介绍

暂无

代码示例

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_inputs()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'inputs' is unset! Struct:" + toString());
 }
 if (!is_set_streams()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'streams' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_name()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' is unset! Struct:" + toString());
 }
 if (!is_set_bits()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'bits' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_componentId()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'componentId' is unset! Struct:" + toString());
 }
 if (!is_set_streamId()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'streamId' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_msg()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'msg' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_time()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'time' is unset! Struct:" + toString());
 }
 if (!is_set_uptime()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'uptime' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_creds()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'creds' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_host()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'host' is unset! Struct:" + toString());
 }
 if (!is_set_uptimeSecs()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'uptimeSecs' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_msg()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'msg' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_msg()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'msg' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_msg()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'msg' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_version()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'version' is unset! Struct:" + toString());
 }
 if (!is_set_session()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'session' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_keys()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'keys' is unset! Struct:" + toString());
 }
 if (!is_set_session()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'session' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_serialized_parts()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'serialized_parts' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_metricWindow()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'metricWindow' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_full_class_name()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'full_class_name' is unset! Struct:" + toString());
 }
 if (!is_set_args_list()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'args_list' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_msg()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'msg' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_msg()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'msg' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_func_args()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'func_args' is unset! Struct:" + toString());
 }
 if (!is_set_request_id()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'request_id' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_msg()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'msg' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

代码示例来源:origin: alibaba/jstorm

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_output_fields()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'output_fields' is unset! Struct:" + toString());
 }
 if (!is_set_direct()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'direct' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}

相关文章

微信公众号

最新文章

更多