javax.management.RuntimeErrorException.getTargetError()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(77)

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

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();

相关文章

微信公众号

最新文章

更多