Giovanni-Mattia-Codemo / ingsw2022-AM12

1 stars 0 forks source link

try catch.. but Game can go on? #14

Closed ingconti closed 2 years ago

ingconti commented 2 years ago

here:

try {
            s.setAssistants();
        } catch (Exception e) {
            e.printStackTrace();
        }
ValerioCapo commented 2 years ago

changed the code so that when the method is called during the setup an exception is properly thrown, causing the program to stop

ingconti commented 2 years ago

stop and ? any message? any log? cleanup of previous action?

CristianaCalvaresi commented 2 years ago

Even in this case, the exception had become redundant so we decided to remove it, avoiding any possible problem