org.springframework.context.ApplicationContextException.fillInStackTrace()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(34)

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

ApplicationContextException.fillInStackTrace介绍

暂无

代码示例

代码示例来源:origin: org.springframework.osgi/org.springframework.osgi.extender

/**
 * Cancel waiting due to timeout.
 */
private void timeout() {
  ApplicationContextException e;
  synchronized (monitor) {
    // deregister listener to get an accurate snapshot of the
    // unsatisfied dependencies.
    if (dependencyDetector != null) {
      dependencyDetector.deregister();
    }
  }
  log.warn("Timeout occurred before finding service dependencies for [" + delegateContext.getDisplayName() + "]");
  e = new ApplicationContextException("Application context initialization for '"
      + (String) AccessController.doPrivileged(new PrivilegedAction() {
        public Object run() {
          return OsgiStringUtils.nullSafeSymbolicName(getBundle());
        }
      }) + "' has timed out");
  e.fillInStackTrace();
  fail(e);
}

代码示例来源:origin: org.eclipse.gemini.blueprint/gemini-blueprint-extender

new ApplicationContextException("Application context " + "initialization for '" + bundleName
        + "' has timed out waiting for " + filterAsString);
e.fillInStackTrace();

相关文章