Use types for exceptions.