Examples of formJson()


Examples of org.eclipse.orion.server.jsch.HostFingerprintException.formJson()

  IStatus getExceptionStatus(Exception e, String message) {
    JSchException jschEx = getJSchException(e);
    if (jschEx != null && jschEx instanceof HostFingerprintException) {
      HostFingerprintException cause = (HostFingerprintException) jschEx;
      return new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_BAD_REQUEST, cause.getMessage(), addRepositoryInfo(cause.formJson()), cause);
    }
    // JSch handles auth fail by exception message, another one handles only by exception message is "invalid privatekey: ..."
    if (jschEx != null
        && jschEx.getMessage() != null
        && (jschEx.getMessage().toLowerCase(Locale.ENGLISH).contains("auth fail") || jschEx.getMessage().toLowerCase(Locale.ENGLISH).contains("invalid privatekey"))) { //$NON-NLS-1$
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.