code: public ResponseOnSingeRequest genErrorResponse(Exception t) {
          ResponseOnSingeRequest sshResponse = new ResponseOnSingeRequest();
          String displayError = PcErrorMsgUtils.replaceErrorMsg(t.toString());
  
          sshResponse.setStackTrace(PcStringUtils.printStackTrace(t));
          sshResponse.setErrorMessage(displayError);
          sshResponse.setFailObtainResponse(true);
  
          logger.error("error in exec SSH. \nIf exection is JSchException: "
                  + "Auth cancel and using public key. "
                  + "\nMake sure 1. private key full path is right (try sshMeta.getPrivKeyAbsPath()). "
                  + "\n2. the user name and key matches  " + t);
  
          return sshResponse;
      }
docs: Gen error response.
  
  @param t
  the t
  @return the response on single request