1package org.testng;
2
3public interface IExpectedExceptionsHolder {
4
5  /**
6   * Get the message in case the Throwable thrown by the test is not matching.
7   *
8   * @param ite The Throwable thrown by the test
9   * @return The message which will be displayed as test result
10   */
11  String getWrongExceptionMessage(Throwable ite);
12
13  /**
14   * Check if the Throwable thrown by the test is matching with the holder logic
15   *
16   * @param ite The Throwable thrown by the test
17   * @return true if the Throwable is matching with the holder logic, false otherwise
18   */
19  boolean isThrowableMatching(Throwable ite);
20}
21