站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 jmx API Documentation 英文版文档

JMXExceptionDecoder (JBoss/JMX API) - JBoss 3.2.7 jmx API Documentation 英文版文档


org.jboss.mx.util
Class JMXExceptionDecoder

java.lang.Object
  extended byorg.jboss.mx.util.JMXExceptionDecoder

public class JMXExceptionDecoder
extends Object

A simple helper to rethrow and/or decode those pesky JMX exceptions.

Version:
$Revision: 1.1.2.3 $
Author:
Jason Dillon

Constructor Summary
JMXExceptionDecoder()
           
 
Method Summary
static Throwable decode(Throwable t)
          Attempt to decode the given Throwable.
static void rethrow(Exception e)
          Decode and rethrow the given Throwable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXExceptionDecoder

public JMXExceptionDecoder()
Method Detail

decode

public static Throwable decode(Throwable t)
Attempt to decode the given Throwable. If it is a container JMX exception, then the target is returned. Otherwise the argument is returned.


rethrow

public static void rethrow(Exception e)
                    throws Exception
Decode and rethrow the given Throwable. If it is a container JMX exception, then the target is thrown. Otherwise the argument is thrown.

Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.