Interface ExceptionObserver

  • All Known Implementing Classes:
    SimpleExceptionObserver

    public interface ExceptionObserver
    This observer intercepts exception thrown during the tests.
    • Method Detail

      • exceptionThrown

        java.lang.Exception exceptionThrown​(java.lang.Exception ex)
        An exception has been thrown.
        Parameters:
        ex - exception
        Returns:
        the same exception
      • getExceptionList

        java.util.List<java.lang.Exception> getExceptionList()
        Returns:
        list of all the thrown exception
      • getLastException

        java.util.Optional<java.lang.Exception> getLastException()
        Returns:
        last thrown exception
      • getFirstException

        java.util.Optional<java.lang.Exception> getFirstException()
        Returns:
        first thrown exception