From 5d2a9d771620fbe56187e9b3a543a5faaf926e88 Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Thu, 11 Feb 2021 19:09:07 +0100 Subject: [PATCH] changed instantiation of the class Error to IllegalArgumentException --- src/jogl/MainFrame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jogl/MainFrame.java b/src/jogl/MainFrame.java index 259608f..6d52a27 100644 --- a/src/jogl/MainFrame.java +++ b/src/jogl/MainFrame.java @@ -115,7 +115,7 @@ public class MainFrame extends JFrame implements ActionListener{ case 1: list.setText("Règles : \n"); default: - throw new Error("Wrong argument given to method changeList"); + throw new IllegalArgumentException("Wrong argument given to method changeList"); } }else{ list.append("-> "+stringToAdd + "\n");