org.jboss.mx.util
Class DefaultExceptionHandler

java.lang.Object
  extended byorg.jboss.mx.util.DefaultExceptionHandler
All Implemented Interfaces:
ProxyExceptionHandler (src)

public class DefaultExceptionHandler
extends java.lang.Object
implements ProxyExceptionHandler (src)

Default exception handler for MBean proxy.


Constructor Summary
DefaultExceptionHandler()
           
 
Method Summary
 java.lang.Object handleAttributeNotFound(ProxyContext (src)  ctx, AttributeNotFoundException (src)  e, java.lang.reflect.Method m, java.lang.Object[] args)
           
 java.lang.Object handleInstanceNotFound(ProxyContext (src)  ctx, InstanceNotFoundException (src)  e, java.lang.reflect.Method m, java.lang.Object[] args)
           
 java.lang.Object handleInvalidAttributeValue(ProxyContext (src)  ctx, InvalidAttributeValueException (src)  e, java.lang.reflect.Method m, java.lang.Object[] args)
           
 java.lang.Object handleMBeanException(ProxyContext (src)  ctx, MBeanException (src)  e, java.lang.reflect.Method m, java.lang.Object[] args)
           
 java.lang.Object handleReflectionException(ProxyContext (src)  ctx, ReflectionException (src)  e, java.lang.reflect.Method m, java.lang.Object[] args)
           
 java.lang.Object handleRuntimeError(ProxyContext (src)  ctx, RuntimeErrorException (src)  e, java.lang.reflect.Method m, java.lang.Object[] args)
           
 java.lang.Object handleRuntimeMBeanException(ProxyContext (src)  ctx, RuntimeMBeanException (src)  e, java.lang.reflect.Method m, java.lang.Object[] args)
           
 java.lang.Object handleRuntimeOperationsException(ProxyContext (src)  ctx, RuntimeOperationsException (src)  e, java.lang.reflect.Method m, java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExceptionHandler

public DefaultExceptionHandler()
Method Detail

handleInstanceNotFound

public java.lang.Object handleInstanceNotFound(ProxyContext (src)  ctx,
                                               InstanceNotFoundException (src)  e,
                                               java.lang.reflect.Method m,
                                               java.lang.Object[] args)
                                        throws java.lang.Exception
Specified by:
handleInstanceNotFound in interface ProxyExceptionHandler (src)
Throws:
java.lang.Exception

handleAttributeNotFound

public java.lang.Object handleAttributeNotFound(ProxyContext (src)  ctx,
                                                AttributeNotFoundException (src)  e,
                                                java.lang.reflect.Method m,
                                                java.lang.Object[] args)
                                         throws java.lang.Exception
Specified by:
handleAttributeNotFound in interface ProxyExceptionHandler (src)
Throws:
java.lang.Exception

handleInvalidAttributeValue

public java.lang.Object handleInvalidAttributeValue(ProxyContext (src)  ctx,
                                                    InvalidAttributeValueException (src)  e,
                                                    java.lang.reflect.Method m,
                                                    java.lang.Object[] args)
                                             throws java.lang.Exception
Specified by:
handleInvalidAttributeValue in interface ProxyExceptionHandler (src)
Throws:
java.lang.Exception

handleMBeanException

public java.lang.Object handleMBeanException(ProxyContext (src)  ctx,
                                             MBeanException (src)  e,
                                             java.lang.reflect.Method m,
                                             java.lang.Object[] args)
                                      throws java.lang.Exception
Specified by:
handleMBeanException in interface ProxyExceptionHandler (src)
Throws:
java.lang.Exception

handleReflectionException

public java.lang.Object handleReflectionException(ProxyContext (src)  ctx,
                                                  ReflectionException (src)  e,
                                                  java.lang.reflect.Method m,
                                                  java.lang.Object[] args)
                                           throws java.lang.Exception
Specified by:
handleReflectionException in interface ProxyExceptionHandler (src)
Throws:
java.lang.Exception

handleRuntimeOperationsException

public java.lang.Object handleRuntimeOperationsException(ProxyContext (src)  ctx,
                                                         RuntimeOperationsException (src)  e,
                                                         java.lang.reflect.Method m,
                                                         java.lang.Object[] args)
                                                  throws java.lang.Exception
Specified by:
handleRuntimeOperationsException in interface ProxyExceptionHandler (src)
Throws:
java.lang.Exception

handleRuntimeMBeanException

public java.lang.Object handleRuntimeMBeanException(ProxyContext (src)  ctx,
                                                    RuntimeMBeanException (src)  e,
                                                    java.lang.reflect.Method m,
                                                    java.lang.Object[] args)
                                             throws java.lang.Exception
Specified by:
handleRuntimeMBeanException in interface ProxyExceptionHandler (src)
Throws:
java.lang.Exception

handleRuntimeError

public java.lang.Object handleRuntimeError(ProxyContext (src)  ctx,
                                           RuntimeErrorException (src)  e,
                                           java.lang.reflect.Method m,
                                           java.lang.Object[] args)
                                    throws java.lang.Exception
Specified by:
handleRuntimeError in interface ProxyExceptionHandler (src)
Throws:
java.lang.Exception