org.json.simple.parser.ParseException.getLocalizedMessage()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(155)

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

ParseException.getLocalizedMessage介绍

暂无

代码示例

代码示例来源:origin: chatty/chatty

LOGGER.warning("Error parsing stream info: "+ex.getLocalizedMessage());

代码示例来源:origin: chatty/chatty

LOGGER.warning("Error parsing streams info: "+ex.getLocalizedMessage());
streamsRequestError(streamInfos);
return -1;

代码示例来源:origin: org.geotools/gt-mbstyle

/**
 * Data structure for pre-processing a MBLayer determining whether the layer contains zoom and
 * zoom-and-property functions and if so, getting the distinct stops for each, building a list
 * of MBLayers (one for each stop) and setting ranges that are used to set min/max scale
 * denominators for each MBLayer.
 *
 * @param layer
 */
public MBObjectStops(MBLayer layer) {
  try {
    if (layer.getPaint() != null) {
      ls = getStops(layer.getPaint(), ls);
    }
    if (layer.getLayout() != null) {
      ls = getStops(layer.getLayout(), ls);
    }
    if (ls.zoomStops || ls.zoomPropertyStops) {
      stops = getStopLevels(layer);
      layersForStop = getLayerStyleForStops(layer, stops);
      ranges = getStopLevelRanges(stops);
    }
  } catch (ParseException e) {
    System.out.println(e.getLocalizedMessage());
  }
}

相关文章