Class TestSetFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.maven.surefire.api.testset.TestSetFailedException
- All Implemented Interfaces:
Serializable
Exception that indicates a test failed.
- Author:
- Bill Venners
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTestSetFailedException(String message) CreatesTestSetFailedExceptionwith a detail message.TestSetFailedException(String message, Throwable cause) CreatesTestSetFailedExceptionwith the specified detail message and cause.TestSetFailedException(Throwable cause) CreatesTestSetFailedExceptionwith the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TestSetFailedException
CreatesTestSetFailedExceptionwith a detail message.- Parameters:
message- A detail message for thisTestSetFailedException, ornull. Ifnullis passed, theThrowable.getMessage()method will return an emptystring.
-
TestSetFailedException
CreatesTestSetFailedExceptionwith the specified detail message and cause.
Note that the detail message associated with cause is NOT automatically incorporated in this throwable's detail message.
- Parameters:
message- A detail message for thisTestSetFailedException, ornull.cause- the cause, which is saved for later retrieval by theThrowable.getCause()method. (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
TestSetFailedException
CreatesTestSetFailedExceptionwith the specified cause. The mthodThrowable.getMessage()method of this exception object will returncause == null ? "" : cause.toString().- Parameters:
cause- The cause
-