org.huihoo.jfox.ejb.exception
Class JMXExceptionDecoder
java.lang.Object
|
+--org.huihoo.jfox.ejb.exception.JMXExceptionDecoder
- public class JMXExceptionDecoder
- extends java.lang.Object
A simple helper to rethrow and/or decode those pesky
JMX exceptions.
- Version:
- $Revision: 0.9.0
- Author:
- tai_1219@sina.com
|
Method Summary |
static java.lang.Throwable |
decode(java.lang.Throwable t)
Attempt to decode the given Throwable. |
static void |
rethrow(java.lang.Exception e)
Decode and rethrow the given Throwable. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMXExceptionDecoder
public JMXExceptionDecoder()
decode
public static java.lang.Throwable decode(java.lang.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.
- Parameters:
t -
- Returns:
- java.lang.Throwable
rethrow
public static void rethrow(java.lang.Exception e)
throws java.lang.Exception
- Decode and rethrow the given Throwable. If it
is a container JMX exception, then the target
is thrown. Otherwise the argument is thrown.
- Parameters:
e -
- Throws:
java.lang.Exception