blob: 18a174b342a6f256770cf246e94320a224d9f5a5 [file] [log] [blame]
package org.testng;
public interface IExpectedExceptionsHolder {
/**
* 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
*
* @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);
}