Package org.eclipse.jgit.errors

Examples of org.eclipse.jgit.errors.TransportException


      TransportException {
    final InputStream src;
    try {
      src = new FileInputStream(bundle);
    } catch (FileNotFoundException err) {
      throw new TransportException(uri, JGitText.get().notFound);
    }
    return new BundleFetchConnection(this, src);
  }
View Full Code Here


      final Channel channel = ((JschSession) getSession())
          .getSftpChannel();
      channel.connect(tms);
      return (ChannelSftp) channel;
    } catch (JSchException je) {
      throw new TransportException(uri, je.getMessage(), je);
    }
  }
View Full Code Here

        objectsPath = ftp.pwd();
      } catch (TransportException err) {
        close();
        throw err;
      } catch (SftpException je) {
        throw new TransportException("Can't enter " + path + "/objects"
            + ": " + je.getMessage(), je);
      }
    }
View Full Code Here

        objectsPath = ftp.pwd();
      } catch (TransportException err) {
        close();
        throw err;
      } catch (SftpException je) {
        throw new TransportException("Can't enter " + p + " from "
            + parent.objectsPath + ": " + je.getMessage(), je);
      }
    }
View Full Code Here

          public int compare(final String o1, final String o2) {
            return mtimes.get(o2) - mtimes.get(o1);
          }
        });
      } catch (SftpException je) {
        throw new TransportException("Can't ls " + objectsPath
            + "/pack: " + je.getMessage(), je);
      }
      return packs;
    }
View Full Code Here

        final SftpATTRS a = ftp.lstat(path);
        return new FileStream(ftp.get(path), a.getSize());
      } catch (SftpException je) {
        if (je.id == ChannelSftp.SSH_FX_NO_SUCH_FILE)
          throw new FileNotFoundException(path);
        throw new TransportException("Can't get " + objectsPath + "/"
            + path + ": " + je.getMessage(), je);
      }
    }
View Full Code Here

      try {
        ftp.rm(path);
      } catch (SftpException je) {
        if (je.id == ChannelSftp.SSH_FX_NO_SUCH_FILE)
          return;
        throw new TransportException("Can't delete " + objectsPath
            + "/" + path + ": " + je.getMessage(), je);
      }

      // Prune any now empty directories.
      //
View Full Code Here

          } catch (SftpException je2) {
            je = je2;
          }
        }

        throw new TransportException("Can't write " + objectsPath + "/"
            + path + ": " + je.getMessage(), je);
      }
    }
View Full Code Here

      try {
        super.writeFile(lock, data);
        try {
          ftp.rename(lock, path);
        } catch (SftpException je) {
          throw new TransportException("Can't write " + objectsPath
              + "/" + path + ": " + je.getMessage(), je);
        }
      } catch (IOException err) {
        try {
          ftp.rm(lock);
View Full Code Here

          } catch (SftpException je2) {
            je = je2;
          }
        }

        throw new TransportException("Can't mkdir " + objectsPath + "/"
            + path + ": " + je.getMessage(), je);
      }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.errors.TransportException

Copyright © 2018 www.massapicom. 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.