All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ehoffman.test.aspects.SkipException Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy