org.apache.commons.logging.LogFactory.handleThrowable()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(107)

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

LogFactory.handleThrowable介绍

[英]Checks whether the supplied Throwable is one that needs to be re-thrown and ignores all others. The following errors are re-thrown:

  • ThreadDeath
  • VirtualMachineError
    [中]检查提供的Throwable是否需要重新抛出,并忽略所有其他内容。将重新引发以下错误:
    *线状死亡
    *虚拟机器错误

代码示例

代码示例来源:origin: commons-logging/commons-logging

result = (Hashtable) implementationClass.newInstance();
} catch (Throwable t) {
  handleThrowable(t); // may re-throw t

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

result = (Hashtable) implementationClass.newInstance();
} catch (Throwable t) {
  handleThrowable(t); // may re-throw t

代码示例来源:origin: org.apache.openjpa/openjpa-all

result = (Hashtable) implementationClass.newInstance();
} catch (Throwable t) {
  handleThrowable(t); // may re-throw t

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

result = (Hashtable) implementationClass.newInstance();
} catch (Throwable t) {
  handleThrowable(t); // may re-throw t

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

throw new LogConfigurationException(c == null ? e : c);
} catch (Throwable t) {
  handleThrowable(t); // may re-throw t

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

" the one loaded from classloader " + objectId(logInterfaceClassLoader));
} catch (Throwable t) {
  handleThrowable(t); // may re-throw t
  logDiagnostic("Error while trying to output diagnostics about" + " bad class '" + badClass + "'");

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

handleThrowable(t); // may re-throw t
  logDiagnostic("Found method setLogFactory(LogFactory) in '" + logAdapterClassName + "'");
} catch (Throwable t) {
  handleThrowable(t); // may re-throw t
  this.logMethod = null;
  logDiagnostic("[INFO] '" + logAdapterClassName + "' from classloader " + objectId(currentCL) +

相关文章