PiervitoCreanza / IS24-AM02

This project is a Java-based implementation of the table game "Codex Naturalis", developed as the final project for the 2023/2024 Software Engineering course at Politecnico di Milano.
4 stars 0 forks source link

Error handling #93

Closed mattiacolombomc closed 5 months ago

mattiacolombomc commented 5 months ago

https://github.com/PiervitoCreanza/IS24-AM02/blob/d471f78c064645e4bc49833996f68e8d6b72e145/src/main/java/it/polimi/ingsw/controller/GameControllerMiddleware.java#L173C13-L173C37

How are we handlng exceptions propagating from https://github.com/PiervitoCreanza/IS24-AM02/blob/d471f78c064645e4bc49833996f68e8d6b72e145/src/main/java/it/polimi/ingsw/model/player/PlayerBoard.java#L155 (validatePlacement)?

PiervitoCreanza commented 5 months ago

They propagate up to the GameControllerMiddleware

PiervitoCreanza commented 5 months ago

@mattiacolombomc Reopen if you have more doubts.