org.openide.util.Mutex.unfoldInvocationTargetException()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(117)

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

Mutex.unfoldInvocationTargetException介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-util

/** Notify exception and returns new MutexException */
private static MutexException notifyException(Throwable t) {
  if (t instanceof InvocationTargetException) {
    t = unfoldInvocationTargetException((InvocationTargetException) t);
  }
  if (t instanceof Error) {
    annotateEventStack(t);
    throw (Error) t;
  }
  if (t instanceof RuntimeException) {
    annotateEventStack(t);
    throw (RuntimeException) t;
  }
  MutexException exc = new MutexException((Exception) t);
  exc.initCause(t);
  return exc;
}

代码示例来源:origin: in.jlibs/org-openide-util

/** Notify exception and returns new MutexException */
private static final MutexException notifyException(Throwable t) {
  if (t instanceof InvocationTargetException) {
    t = unfoldInvocationTargetException((InvocationTargetException) t);
  }
  if (t instanceof Error) {
    annotateEventStack(t);
    throw (Error) t;
  }
  if (t instanceof RuntimeException) {
    annotateEventStack(t);
    throw (RuntimeException) t;
  }
  MutexException exc = new MutexException((Exception) t);
  exc.initCause(t);
  return exc;
}

代码示例来源:origin: uk.gov.nationalarchives.thirdparty.netbeans/org-openide-util

/** Notify exception and returns new MutexException */
private static MutexException notifyException(Throwable t) {
  if (t instanceof InvocationTargetException) {
    t = unfoldInvocationTargetException((InvocationTargetException) t);
  }
  if (t instanceof Error) {
    annotateEventStack(t);
    throw (Error) t;
  }
  if (t instanceof RuntimeException) {
    annotateEventStack(t);
    throw (RuntimeException) t;
  }
  MutexException exc = new MutexException((Exception) t);
  exc.initCause(t);
  return exc;
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

/** Notify exception and returns new MutexException */
private static final MutexException notifyException(int severity, Throwable t) {
  if (t instanceof InvocationTargetException) {
    t = unfoldInvocationTargetException((InvocationTargetException) t);
  }
  
  if (t instanceof Error) {
    annotateEventStack(t);
    throw (Error) t;
  }
  
  if (t instanceof RuntimeException) {
    annotateEventStack(t);
    throw (RuntimeException) t;
  }
  
  MutexException exc = new MutexException((Exception) t);
  ErrorManager.getDefault().annotate(exc, t);
return exc;
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

/** Notify exception and returns new MutexException */
private static final MutexException notifyException(int severity, Throwable t) {
  if (t instanceof InvocationTargetException) {
    t = unfoldInvocationTargetException((InvocationTargetException) t);
  }
  
  if (t instanceof Error) {
    annotateEventStack(t);
    throw (Error) t;
  }
  
  if (t instanceof RuntimeException) {
    annotateEventStack(t);
    throw (RuntimeException) t;
  }
  
  MutexException exc = new MutexException((Exception) t);
  ErrorManager.getDefault().annotate(exc, t);
return exc;
}

相关文章