gpt4 book ai didi

org.joda.time.tz.ZoneInfoProvider.uncaughtException()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 22:10:49 27 4
gpt4 key购买 nike

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

ZoneInfoProvider.uncaughtException介绍

[英]Called if an exception is thrown from getZone while loading zone data.
[中]在加载区域数据时从getZone引发异常时调用。

代码示例

代码示例来源:origin: joda-time/joda-time

/**
 * Loads the time zone data for one id.
 * 
 * @param id  the id to load
 * @return the zone
 */
private DateTimeZone loadZoneData(String id) {
  InputStream in = null;
  try {
    in = openResource(id);
    DateTimeZone tz = DateTimeZoneBuilder.readFrom(in, id);
    iZoneInfoMap.put(id, new SoftReference<DateTimeZone>(tz));
    return tz;
  } catch (IOException ex) {
    uncaughtException(ex);
    iZoneInfoMap.remove(id);
    return null;
  } finally {
    try {
      if (in != null) {
        in.close();
      }
    } catch (IOException ex) {
    }
  }
}

代码示例来源:origin: JodaOrg/joda-time

/**
 * Loads the time zone data for one id.
 * 
 * @param id  the id to load
 * @return the zone
 */
private DateTimeZone loadZoneData(String id) {
  InputStream in = null;
  try {
    in = openResource(id);
    DateTimeZone tz = DateTimeZoneBuilder.readFrom(in, id);
    iZoneInfoMap.put(id, new SoftReference<DateTimeZone>(tz));
    return tz;
  } catch (IOException ex) {
    uncaughtException(ex);
    iZoneInfoMap.remove(id);
    return null;
  } finally {
    try {
      if (in != null) {
        in.close();
      }
    } catch (IOException ex) {
    }
  }
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Loads the time zone data for one id.
 * 
 * @param id  the id to load
 * @return the zone
 */
private DateTimeZone loadZoneData(String id) {
  InputStream in = null;
  try {
    in = openResource(id);
    DateTimeZone tz = DateTimeZoneBuilder.readFrom(in, id);
    iZoneInfoMap.put(id, new SoftReference<DateTimeZone>(tz));
    return tz;
  } catch (IOException ex) {
    uncaughtException(ex);
    iZoneInfoMap.remove(id);
    return null;
  } finally {
    try {
      if (in != null) {
        in.close();
      }
    } catch (IOException ex) {
    }
  }
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

/**
 * Loads the time zone data for one id.
 * 
 * @param id  the id to load
 * @return the zone
 */
private DateTimeZone loadZoneData(String id) {
  InputStream in = null;
  try {
    in = openResource(id);
    DateTimeZone tz = DateTimeZoneBuilder.readFrom(in, id);
    iZoneInfoMap.put(id, new SoftReference<DateTimeZone>(tz));
    return tz;
  } catch (IOException ex) {
    uncaughtException(ex);
    iZoneInfoMap.remove(id);
    return null;
  } finally {
    try {
      if (in != null) {
        in.close();
      }
    } catch (IOException ex) {
    }
  }
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/**
 * Loads the time zone data for one id.
 * 
 * @param id  the id to load
 * @return the zone
 */
private DateTimeZone loadZoneData(String id) {
  InputStream in = null;
  try {
    in = openResource(id);
    DateTimeZone tz = DateTimeZoneBuilder.readFrom(in, id);
    iZoneInfoMap.put(id, new SoftReference<DateTimeZone>(tz));
    return tz;
  } catch (IOException ex) {
    uncaughtException(ex);
    iZoneInfoMap.remove(id);
    return null;
  } finally {
    try {
      if (in != null) {
        in.close();
      }
    } catch (IOException ex) {
    }
  }
}

代码示例来源:origin: Nextdoor/bender

/**
 * Loads the time zone data for one id.
 * 
 * @param id  the id to load
 * @return the zone
 */
private DateTimeZone loadZoneData(String id) {
  InputStream in = null;
  try {
    in = openResource(id);
    DateTimeZone tz = DateTimeZoneBuilder.readFrom(in, id);
    iZoneInfoMap.put(id, new SoftReference<DateTimeZone>(tz));
    return tz;
  } catch (IOException ex) {
    uncaughtException(ex);
    iZoneInfoMap.remove(id);
    return null;
  } finally {
    try {
      if (in != null) {
        in.close();
      }
    } catch (IOException ex) {
    }
  }
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * Loads the time zone data for one id.
 * 
 * @param id  the id to load
 * @return the zone
 */
private DateTimeZone loadZoneData(String id) {
  InputStream in = null;
  try {
    in = openResource(id);
    DateTimeZone tz = DateTimeZoneBuilder.readFrom(in, id);
    iZoneInfoMap.put(id, new SoftReference<DateTimeZone>(tz));
    return tz;
  } catch (IOException ex) {
    uncaughtException(ex);
    iZoneInfoMap.remove(id);
    return null;
  } finally {
    try {
      if (in != null) {
        in.close();
      }
    } catch (IOException ex) {
    }
  }
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

/**
 * Loads the time zone data for one id.
 * 
 * @param id  the id to load
 * @return the zone
 */
private DateTimeZone loadZoneData(String id) {
  InputStream in = null;
  try {
    in = openResource(id);
    DateTimeZone tz = DateTimeZoneBuilder.readFrom(in, id);
    iZoneInfoMap.put(id, new SoftReference<DateTimeZone>(tz));
    return tz;
  } catch (IOException ex) {
    uncaughtException(ex);
    iZoneInfoMap.remove(id);
    return null;
  } finally {
    try {
      if (in != null) {
        in.close();
      }
    } catch (IOException ex) {
    }
  }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.joda-time

/**
 * Loads the time zone data for one id.
 * 
 * @param id  the id to load
 * @return the zone
 */
private DateTimeZone loadZoneData(String id) {
  InputStream in = null;
  try {
    in = openResource(id);
    DateTimeZone tz = DateTimeZoneBuilder.readFrom(in, id);
    iZoneInfoMap.put(id, new SoftReference<DateTimeZone>(tz));
    return tz;
  } catch (IOException ex) {
    uncaughtException(ex);
    iZoneInfoMap.remove(id);
    return null;
  } finally {
    try {
      if (in != null) {
        in.close();
      }
    } catch (IOException ex) {
    }
  }
}

代码示例来源:origin: org.joda/com.springsource.org.joda.time

/**
 * Loads the time zone data for one id.
 * 
 * @param id  the id to load
 * @return the zone
 */
private DateTimeZone loadZoneData(String id) {
  InputStream in = null;
  try {
    in = openResource(id);
    DateTimeZone tz = DateTimeZoneBuilder.readFrom(in, id);
    iZoneInfoMap.put(id, new SoftReference(tz));
    return tz;
  } catch (IOException e) {
    uncaughtException(e);
    iZoneInfoMap.remove(id);
    return null;
  } finally {
    try {
      if (in != null) {
        in.close();
      }
    } catch (IOException e) {
    }
  }
}

代码示例来源:origin: redfish64/TinyTravelTracker

/**
 * Loads the time zone data for one id.
 * 
 * @param id  the id to load
 * @return the zone
 */
private DateTimeZone loadZoneData(String id) {
  InputStream in = null;
  try {
    in = openResource(id);
    DateTimeZone tz = DateTimeZoneBuilder.readFrom(in, id);
    iZoneInfoMap.put(id, new SoftReference<DateTimeZone>(tz));
    return tz;
  } catch (IOException ex) {
    uncaughtException(ex);
    iZoneInfoMap.remove(id);
    return null;
  } finally {
    try {
      if (in != null) {
        in.close();
      }
    } catch (IOException ex) {
    }
  }
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com