Package org.protelis.test.observer
Interface ExceptionObserver
-
- All Known Implementing Classes:
SimpleExceptionObserver
public interface ExceptionObserver
This observer intercepts exception thrown during the tests.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Exception
exceptionThrown(java.lang.Exception ex)
An exception has been thrown.java.util.List<java.lang.Exception>
getExceptionList()
java.util.Optional<java.lang.Exception>
getFirstException()
java.util.Optional<java.lang.Exception>
getLastException()
-
-
-
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
-
-