Assertions related to exceptions.