public class SkipException extends RuntimeException
isSkip(). Users may provide extensions to this mechanism by extending this class.| Constructor and Description |
|---|
SkipException(String skipMessage) |
SkipException(String skipMessage,
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(). |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic SkipException(String skipMessage)
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 trueprotected void reduceStackTrace()
restoreStackTrace().protected void restoreStackTrace()
reduceStackTrace().Copyright © 2025. All rights reserved.