本文整理了Java中org.openide.util.Mutex.unfoldInvocationTargetException()
方法的一些代码示例,展示了Mutex.unfoldInvocationTargetException()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Mutex.unfoldInvocationTargetException()
方法的具体详情如下:
包路径:org.openide.util.Mutex
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!