public void testCustomExceptionHandler() throws Exception(Code)
This test shows how to override the default exception handling for
proxy invocations. The default handling for exceptions that are not
declared as part of the proxy typed interface (such as InstanceNotFound
or AttributeNotFound exceptions) are rethrown as unchecked
RuntimeProxyExceptions. See org.jboss.mx.proxy.DefaultExceptionHandler
for details. This behavior can be changed at runtime through the proxy
context interface setExceptionHandler() method.