Method ScalarMatcher::getFailureExceptionFor returns exception.