private void gotUnknown(Message msg, SSHPacket buf) throws SSHException { if (currentMethod == null || result == null) { trans.sendUnimplemented(); return; } log.debug("Asking {} method to handle {} packet", currentMethod.getName(), msg); try { currentMethod.handle(msg, buf); } catch (UserAuthException e) { result.error(e); } }
@Override public void notifyError(SSHException error) { super.notifyError(error); result.error(error); }