package org.testng;

public interface IExpectedExceptionsHolder {

  
Get the message in case the Throwable thrown by the test is not matching.
Params:
  • ite – The Throwable thrown by the test
Returns:The message which will be displayed as test result
/** * Get the message in case the Throwable thrown by the test is not matching. * * @param ite The Throwable thrown by the test * @return The message which will be displayed as test result */
String getWrongExceptionMessage(Throwable ite);
Check if the Throwable thrown by the test is matching with the holder logic
Params:
  • ite – The Throwable thrown by the test
Returns:true if the Throwable is matching with the holder logic, false otherwise
/** * Check if the Throwable thrown by the test is matching with the holder logic * * @param ite The Throwable thrown by the test * @return true if the Throwable is matching with the holder logic, false otherwise */
boolean isThrowableMatching(Throwable ite); }