ThrowableMatchers
API
ThrowableMatchers.java
class ThrowableMatchers {
ThrowableMatchers()
TypeSafeMatcher<Throwable> causedBy(Class<? extends Throwable> type) (1)
Matcher<Throwable> causalChainHasMessageWith(String messageFragment)
}
1 | causedBy(Class)
Matches when the exception’s causal chain contains the given type |