类 UndeclaredThrowableStrategy

java.lang.Object
cn.taketoday.bytecode.core.DefaultGeneratorStrategy
cn.taketoday.bytecode.transform.impl.UndeclaredThrowableStrategy
所有已实现的接口:
GeneratorStrategy

public class UndeclaredThrowableStrategy extends DefaultGeneratorStrategy
A GeneratorStrategy suitable for use with Enhancer which causes all undeclared exceptions thrown from within a proxied method to be wrapped in an alternative exception of your choice.
  • 字段详细资料

    • wrapper

      private final Class wrapper
    • TRANSFORM_FILTER

      private static final MethodFilter TRANSFORM_FILTER
  • 构造器详细资料

    • UndeclaredThrowableStrategy

      public UndeclaredThrowableStrategy(Class wrapper)
      Create a new instance of this strategy.
      参数:
      wrapper - a class which extends either directly or indirectly from Throwable and which has at least one constructor that takes a single argument of type Throwable, for example java.lang.reflect.UndeclaredThrowableException.class
  • 方法详细资料