add exception handle model.