|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.testng.SkipException
public class SkipException
The root exception for special skip handling. In case a @Test or @Configuration
throws this exception the method will be considered a skip or a failure according to the
return of .
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 Summary | |
|---|---|
SkipException(java.lang.String skipMessage)
|
|
| Method Summary | |
|---|---|
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(). |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SkipException(java.lang.String skipMessage)
| Method Detail |
|---|
public boolean isSkip()
protected void reduceStackTrace()
restoreStackTrace().
protected void restoreStackTrace()
reduceStackTrace().
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||