/** * @return A matcher that delegates to throwableMatcher and in addition * appends the stacktrace of the actual Throwable in case of a mismatch. */ public static <T extends Throwable> Matcher<T> isThrowable(Matcher<T> throwableMatcher) { return StacktracePrintingMatcher.isThrowable(throwableMatcher); }
/** * @return A matcher that delegates to exceptionMatcher and in addition * appends the stacktrace of the actual Exception in case of a mismatch. */ public static <T extends Exception> Matcher<T> isException(Matcher<T> exceptionMatcher) { return StacktracePrintingMatcher.isException(exceptionMatcher); }