org.apache.maven.surefire.testset
Class TestSetFailedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.maven.surefire.util.NestedCheckedException
              extended by org.apache.maven.surefire.testset.TestSetFailedException
All Implemented Interfaces:
Serializable

public class TestSetFailedException
extends NestedCheckedException

Exception that indicates a test failed.

Author:
Bill Venners
See Also:
Serialized Form

Constructor Summary
TestSetFailedException()
          Create a TestFailedException with no detail message.
TestSetFailedException(String message)
          Create a TestFailedException with a detail message.
TestSetFailedException(String message, Throwable cause)
          Create a TestFailedException with the specified detail message and cause.
TestSetFailedException(Throwable cause)
          Create a TestFailedException with the specified cause.
 
Method Summary
 
Methods inherited from class org.apache.maven.surefire.util.NestedCheckedException
contains, getCause, getMessage, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestSetFailedException

public TestSetFailedException()
Create a TestFailedException with no detail message.


TestSetFailedException

public TestSetFailedException(String message)
Create a TestFailedException with a detail message.

Parameters:
message - A detail message for this TestFailedException, or null. If null is passed, the getMessage method will return an empty String.

TestSetFailedException

public TestSetFailedException(String message,
                              Throwable cause)
Create a TestFailedException with 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 this TestFailedException, or null.
cause - the cause, which is saved for later retrieval by the getCause method. (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

TestSetFailedException

public TestSetFailedException(Throwable cause)
Create a TestFailedException with the specified cause. The getMessage method of this exception object will return (cause == null ? "" : cause.toString()).



Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.