Package com.applitools.eyes.exceptions
Class TestFailedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- java.lang.AssertionError
-
- com.applitools.eyes.exceptions.TestFailedException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DiffsFoundException
,NewTestException
public class TestFailedException extends AssertionError
Indicates that a test did not pass (i.e., test either failed or is a new test).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TestFailedException(TestResults testResults, String message)
TestFailedException(TestResults testResults, String scenarioIdOrName, String appIdOrName)
TestFailedException(String message)
Creates a new TestFailedException instance.TestFailedException(String message, Throwable cause)
Creates an EyesException instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestResults
getTestResults()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
TestFailedException
public TestFailedException(TestResults testResults, String scenarioIdOrName, String appIdOrName)
-
TestFailedException
public TestFailedException(TestResults testResults, String message)
-
TestFailedException
public TestFailedException(String message)
Creates a new TestFailedException instance.- Parameters:
message
- A description string.
-
-
Method Detail
-
getTestResults
public TestResults getTestResults()
- Returns:
- The failed test results, or
null
if the test has not yet ended (e.g., when thrown due toFailureReports.IMMEDIATE
settings).
-
-