We currently have UtilMatchers.isExceptionWithMatchingMessage which takes a regular expression to match the exception's message. (as well ass UtilMatchers.isExceptionWithMessage which simply expects the exact message).
It would be convenient to be able to pass an arbitrary Matcher to match the exception message instead.
By using ChainingMatcher (see
MAGNOLIA-6063), we could introduce an ExceptionMatcher