org.ehoffman.test.aspects.SkipException Maven / Gradle / Ivy
package org.ehoffman.test.aspects;
import org.aopalliance.intercept.MethodInterceptor;
/**
* Thrown by a {@link MethodInterceptor} to tell the testing framework to mark this test as skipped.
*
* @author rex
*/
public class SkipException extends RuntimeException {
private static final long serialVersionUID = -5426289576688254421L;
private MethodInterceptor reasonSkipped;
public SkipException(final MethodInterceptor reasonSkipped) {
this.reasonSkipped = reasonSkipped;
}
public SkipException(final String message, final Throwable causedBy) {
super(message, causedBy);
}
public SkipException(final Throwable causedBy, final MethodInterceptor reasonSkipped) {
super(causedBy);
this.reasonSkipped = reasonSkipped;
}
public MethodInterceptor getReasonSkipped() {
return reasonSkipped;
}
}