In public RollbackRuleAttribute(Class<?> clazz), only store the class name of the specified class, and in private int getDepth(Class<?> exceptionClass, int depth), matching logic is by exceptionClass.getName().contains(this.exceptionName). So, the enclosed class of the specified parameter of public RollbackRuleAttribute(Class<?> clazz) also can be match. Suggest Improve javadoc in corresponding method.

Comment From: chenqimiao

@sbrannen Thank you for your review, I have submitted a unit test to demonstrate that an enclosing class would result in a positive match.

Comment From: sbrannen

This has been merged into master.

Thanks