jpacman-framework
jpacman-framework copied to clipboard
Missing proper exception mapdesign without player
If a user tries to parse a map without putting a player on that map, an IndexOutOfBoundsException will be thrown. This exception doesn't tell the user anything about his possible error. It would be better to throw a PacManConfigurationException, because this will tell the user what is going wrong, and gives an indication as to how this problem can be fixed.
Linking to the fix in #33.
An invariant exists here. Can we close this issue or do we want to turn it into a isEmpty() check which throws the PacManConfigurationException?