本文整理了Java中javax.management.RuntimeErrorException.getTargetError
方法的一些代码示例,展示了RuntimeErrorException.getTargetError
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RuntimeErrorException.getTargetError
方法的具体详情如下:
包路径:javax.management.RuntimeErrorException
类名称:RuntimeErrorException
方法名:getTargetError
暂无
代码示例来源:origin: spring-projects/spring-framework
throw ex.getTargetError();
throw ((RuntimeErrorException) rex).getTargetError();
代码示例来源:origin: org.springframework/spring-context
throw ex.getTargetError();
throw ((RuntimeErrorException) rex).getTargetError();
代码示例来源:origin: org.jboss.jbossas/jboss-as-j2se
public Object handleRuntimeError(ProxyContext ctx, RuntimeErrorException e,
Method m, Object[] args)
throws Exception
{
// just unwrap and throw the actual error
throw e.getTargetError();
}
代码示例来源:origin: org.jboss.seam/jboss-seam
public Object handleRuntimeError(ProxyContext ctx, RuntimeErrorException e,
Method m, Object[] args)
throws Exception
{
// just unwrap and throw the actual error
throw e.getTargetError();
}
代码示例来源:origin: org.ow2.jonas/jonas-management-extensions
targetExc = ((RuntimeOperationsException) e).getTargetException();
} else if (e instanceof RuntimeErrorException) {
Error atargetExc = ((RuntimeErrorException) e).getTargetError();
targetExc = new Exception(atargetExc.getMessage());
代码示例来源:origin: org.jboss.test/jboss-test
log.error("RuntimeErrorException", e.getTargetError());
throw e.getTargetError();
代码示例来源:origin: org.jboss/jboss-test
log.error("RuntimeErrorException", e.getTargetError());
throw e.getTargetError();
代码示例来源:origin: com.bbossgroups/bboss-persistent
throw e.getTargetException();
} catch (javax.management.RuntimeErrorException e) {
throw e.getTargetError();
} catch (Exception e) {
throw e;
代码示例来源:origin: org.jboss.jbossas/jboss-as-j2se
/**
* Attempt to decode the given Throwable. If it
* is a container JMX exception, then the target
* is returned. Otherwise the argument is returned.
*/
public static Throwable decode(final Throwable t)
{
Throwable result = t;
while (true)
{
if (result instanceof MBeanException)
result = ((MBeanException) result).getTargetException();
else if (result instanceof ReflectionException)
result = ((ReflectionException) result).getTargetException();
else if (result instanceof RuntimeOperationsException)
result = ((RuntimeOperationsException) result).getTargetException();
else if (result instanceof RuntimeMBeanException)
result = ((RuntimeMBeanException) result).getTargetException();
else if (result instanceof RuntimeErrorException)
result = ((RuntimeErrorException) result).getTargetError();
else
// can't decode
break;
}
return result;
}
代码示例来源:origin: apache/servicemix-bundles
throw ex.getTargetError();
throw ((RuntimeErrorException) rex).getTargetError();
内容来源于网络,如有侵权,请联系作者删除!