szmate1618 / comets

1 stars 0 forks source link

Better error/exception handling #96

Open szmate1618 opened 4 years ago

szmate1618 commented 4 years ago

On the server side there should not be any exceptions, but errors should be checked and logged more rigorously. In the GameClient, we already have 2 catch blocks that swallow the exception and print a very brief error message instead. This is perfectly fine for developers, but not for our future players. If the error is something a user should be able to solve or at least report to the developers, they should be provided with the necessary information in the error message. If it is something what they cannot possibly deal with, it does not make too much sense to burden them with a message anyway.