Removed custom exception candy

This commit is contained in:
2024-05-12 13:42:11 -04:00
parent 634f1478ce
commit f8180a7000
153 changed files with 156 additions and 339 deletions
@@ -1,6 +1,5 @@
package engine.net.client.handlers;
import engine.exception.MsgSendException;
import engine.net.client.ClientConnection;
import engine.net.client.msg.ClientNetMsg;
@@ -20,7 +19,7 @@ public abstract class AbstractClientMsgHandler {
try {
executionSucceded = _handleNetMsg(msg, (ClientConnection) msg.getOrigin());
} catch (MsgSendException e) {
} catch (Exception e) {
e.printStackTrace();
executionSucceded = false;
}
@@ -28,5 +27,5 @@ public abstract class AbstractClientMsgHandler {
return executionSucceded;
}
protected abstract boolean _handleNetMsg(ClientNetMsg msg, ClientConnection origin) throws MsgSendException;
protected abstract boolean _handleNetMsg(ClientNetMsg msg, ClientConnection origin);
}