Removed custom exception candy
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user