Check exception message against a string as well as a regex