示例#1
0
  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);
    }
  }
示例#2
0
 @Override
 public void notifyError(SSHException error) {
   super.notifyError(error);
   result.error(error);
 }