This commit is contained in:
Arthur 2021-02-11 19:20:52 +01:00
commit 338b44f007

View File

@ -115,7 +115,7 @@ public class MainFrame extends JFrame implements ActionListener{
case 1: case 1:
list.setText("Règles : \n"); list.setText("Règles : \n");
default: default:
throw new Error("Wrong argument given to method changeList"); throw new IllegalArgumentException("Wrong argument given to method changeList");
} }
}else{ }else{
list.append("-> "+stringToAdd + "\n"); list.append("-> "+stringToAdd + "\n");