I have a method:
public List<Model> getModelList() throws ModelNotFoundException {
if (modelList.isEmpty()) {
throw new ModelNotFoundException("Model list is empty!");
}
return modelList;
}
Is it redundant to use throws with throw? If I remove throws ModelNotFoundException, idea underlines throw new ...