@Override public void onMuxException(MuxException e) { if (e instanceof MuxPhysicalConnectionException) { mustFailPhysicalConnection((MuxPhysicalConnectionException)e); } LOG.warn(e); // TODO: handle other (non physical) mux exceptions how? }
@Override public void onMuxException(MuxException e) { if (e instanceof MuxPhysicalConnectionException) { mustFailPhysicalConnection((MuxPhysicalConnectionException)e); } LOG.warn(e); // TODO: handle other (non physical) mux exceptions how? }
/** * Incoming parser errors */ @Override public void incomingError(WebSocketException e) { MuxDropChannel.Reason reason = MuxDropChannel.Reason.PHYSICAL_CONNECTION_FAILED; String phrase = String.format("%s: %s", e.getClass().getName(), e.getMessage()); mustFailPhysicalConnection(new MuxPhysicalConnectionException(reason,phrase)); }
/** * Incoming parser errors */ @Override public void incomingError(WebSocketException e) { MuxDropChannel.Reason reason = MuxDropChannel.Reason.PHYSICAL_CONNECTION_FAILED; String phrase = String.format("%s: %s", e.getClass().getName(), e.getMessage()); mustFailPhysicalConnection(new MuxPhysicalConnectionException(reason,phrase)); }