getException method
Returns an indication if the test failed with an exception.
Syntax
Throwable value = obj.getException();
Parameters
This method does not take any parameters.
Return value
- Type: Throwable
-
A value that is not null indicates that an exception occured when running the test.