Class AssertionFailure

All Implemented Interfaces:
Serializable

public class AssertionFailure extends RuntimeException
Assertion failure exception.
This exception is specially handled in TestResult to get the third line of the traceback and print that, rather than the entire traceback. As such, this should only be thrown from a method that is exactly one method call away from the test.
See Also:
  • Constructor Details

    • AssertionFailure

      public AssertionFailure(String msg)