org.fest.reflect.field.decorator
Class RuntimeExceptionShield

java.lang.Object
  extended by org.fest.reflect.field.decorator.RuntimeExceptionShield
All Implemented Interfaces:
InvocationHandler

public class RuntimeExceptionShield
extends Object
implements InvocationHandler

A proxy for shielding from exception

Author:
Ivan Hristov

Constructor Summary
RuntimeExceptionShield(Object target, Class<?> exceptionClass)
           
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeExceptionShield

public RuntimeExceptionShield(Object target,
                              Class<?> exceptionClass)
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.