public class SkipException
extends java.lang.RuntimeException
isSkip()
. Users may provide extensions to this mechanism by extending this class.Constructor and Description |
---|
SkipException(java.lang.String skipMessage) |
SkipException(java.lang.String skipMessage,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
boolean |
isSkip()
Flag if the current exception marks a skipped method (
true ) or a failure
(false ). |
protected void |
reduceStackTrace()
Subclasses may use this method to reduce the printed stack trace.
|
protected void |
restoreStackTrace()
Restores the original exception stack trace after a previous call to
reduceStackTrace() . |
public SkipException(java.lang.String skipMessage)
public SkipException(java.lang.String skipMessage, java.lang.Throwable cause)
public boolean isSkip()
true
) or a failure
(false
). By default Subclasses should override this method in order to provide smarter
behavior.true
if the method should be considered a skip, false
if the method
should be considered failed. If not overwritten it returns true
protected void reduceStackTrace()
restoreStackTrace()
.protected void restoreStackTrace()
reduceStackTrace()
.