throw exception if no model is found