package org.mockejb;
import java.lang.reflect.Method;
public class MustBeInterceptedException extends RuntimeException {
public MustBeInterceptedException(Method method) {
super("The method "+method.getName()+" must be intercepted using AspectSystem and "+
"interceptors. MockEJB does not support CMP finders and sjbSelect methods.\n"+method);
}
public MustBeInterceptedException() {
super("The method that you are trying to call must be intercepted using AspectSystem and "+
"interceptors. MockEJB does not support CMP finders and other methods." );
}
}