org.testng
public class SkipException extends java.lang.RuntimeException
.
Users may provide extensions to this mechanism by extending this class.
The methods to be considered when extending are
and Throwable.getMessage()
for customizing the output.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()
protected void reduceStackTrace()
restoreStackTrace()
.protected void restoreStackTrace()
reduceStackTrace()
.