Class MethodExceptionTypeMatcher<T extends MethodDescription>

Type Parameters:
T - The type of the matched entity.
All Implemented Interfaces:
ElementMatcher<T>, ElementMatcher.Junction<T>

@Enhance public class MethodExceptionTypeMatcher<T extends MethodDescription> extends ElementMatcher.Junction.ForNonNullValues<T>
An element matcher that matches the exceptions that are declared by a method.
  • Field Details

  • Constructor Details

    • MethodExceptionTypeMatcher

      public MethodExceptionTypeMatcher(ElementMatcher<? super TypeList.Generic> matcher)
      Creates a new matcher for a method's exceptions.
      Parameters:
      matcher - The matcher to apply to the matched method's exceptions.
  • Method Details