org.codehaus.jettison.json.JSONException.getLocalizedMessage()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(81)

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

JSONException.getLocalizedMessage介绍

暂无

代码示例

代码示例来源:origin: Netflix/Priam

uploadStatus,
abp.getFileName(),
exception.getLocalizedMessage());

代码示例来源:origin: org.opendaylight.centinel/centinel-streamhandler

public KafkaStreamProducer(String topic, Boolean isAsync, String message, String type,
    KafkaProducer<Long, String> producer) {
  synchronized (producer) {
    this.producer = producer;
  }
  JSONObject data = null;
  if (type.equals("syslog")) {
    try {
      data = parseLogMessage(message);
      this.message = data.toString();
    } catch (JSONException e) {
      log.error(e.getLocalizedMessage(), e);
    }
  } else {
    this.message = message;
  }
  this.topic = topic;
  this.isAsync = isAsync;
  this.key = System.currentTimeMillis();
}

代码示例来源:origin: org.onap.ccsdk.sli.plugins/properties-node-provider

throw new SvcLogicException("Unable to convert JSON to properties " + e.getLocalizedMessage(), e);

代码示例来源:origin: org.onap.ccsdk.sli.plugins/restapi-call-node-provider

throw new SvcLogicException("Unable to convert JSON to properties" + e.getLocalizedMessage(), e);

代码示例来源:origin: org.opendaylight.centinel/centinel-streamhandler

body = new JSONObject(eventBody);
} catch (JSONException e2) {
  LOG.error(e2.getLocalizedMessage(), e2);

相关文章