Class UndeclaredThrowableStrategy
java.lang.Object
org.springframework.cglib.core.DefaultGeneratorStrategy
org.springframework.cglib.transform.impl.UndeclaredThrowableStrategy
- All Implemented Interfaces:
- GeneratorStrategy
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.- 
Field SummaryFields inherited from class DefaultGeneratorStrategyINSTANCE
- 
Constructor SummaryConstructorsConstructorDescriptionUndeclaredThrowableStrategy(Class wrapper) Create a new instance of this strategy.
- 
Method SummaryMethods inherited from class DefaultGeneratorStrategygenerate, getClassVisitor, getClassWriter, transformMethods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GeneratorStrategyequals
- 
Constructor Details- 
UndeclaredThrowableStrategyCreate a new instance of this strategy.- Parameters:
- wrapper- a class which extends either directly or indirectly from- Throwableand which has at least one constructor that takes a single argument of type- Throwable, for example- java.lang.reflect.UndeclaredThrowableException.class
 
 
- 
- 
Method Details- 
transform- Overrides:
- transformin class- DefaultGeneratorStrategy
- Throws:
- Exception
 
 
-