congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
RevWalkException
Code IndexAdd Tabnine to your IDE (free)

How to use
RevWalkException
in
org.eclipse.jgit.errors

Best Java code snippets using org.eclipse.jgit.errors.RevWalkException (Showing top 6 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * Like {@link #next()}, but if a checked exception is thrown during the
 * walk it is rethrown as a {@link RevWalkException}.
 *
 * @throws RevWalkException if an {@link IOException} was thrown.
 * @return next most recent commit; null if traversal is over.
 */
@Nullable
private RevCommit nextForIterator() {
  try {
    return next();
  } catch (IOException e) {
    throw new RevWalkException(e);
  }
}
origin: sonia.jgit/org.eclipse.jgit

public RevCommit next() {
  try {
    final RevCommit r = next;
    next = RevWalk.this.next();
    return r;
  } catch (MissingObjectException e) {
    throw new RevWalkException(e);
  } catch (IncorrectObjectTypeException e) {
    throw new RevWalkException(e);
  } catch (IOException e) {
    throw new RevWalkException(e);
  }
}
origin: theonedev/onedev

@Override
public RevCommit next() {
  try {
    final RevCommit r = next;
    next = RevWalk.this.next();
    return r;
  } catch (MissingObjectException e) {
    throw new RevWalkException(e);
  } catch (IncorrectObjectTypeException e) {
    throw new RevWalkException(e);
  } catch (IOException e) {
    throw new RevWalkException(e);
  }
}
origin: sonia.jgit/org.eclipse.jgit

  first = RevWalk.this.next();
} catch (MissingObjectException e) {
  throw new RevWalkException(e);
} catch (IncorrectObjectTypeException e) {
  throw new RevWalkException(e);
} catch (IOException e) {
  throw new RevWalkException(e);
origin: theonedev/onedev

  first = RevWalk.this.next();
} catch (MissingObjectException e) {
  throw new RevWalkException(e);
} catch (IncorrectObjectTypeException e) {
  throw new RevWalkException(e);
} catch (IOException e) {
  throw new RevWalkException(e);
origin: berlam/github-bucket

/**
 * Like {@link #next()}, but if a checked exception is thrown during the
 * walk it is rethrown as a {@link RevWalkException}.
 *
 * @throws RevWalkException if an {@link IOException} was thrown.
 * @return next most recent commit; null if traversal is over.
 */
@Nullable
private RevCommit nextForIterator() {
  try {
    return next();
  } catch (IOException e) {
    throw new RevWalkException(e);
  }
}
org.eclipse.jgit.errorsRevWalkException

Javadoc

Indicates a checked exception was thrown inside of org.eclipse.jgit.revwalk.RevWalk.

Usually this exception is thrown from the Iterator created around a RevWalk instance, as the Iterator API does not allow checked exceptions to be thrown from hasNext() or next(). The java.lang.Exception#getCause() of this exception is the original checked exception that we really wanted to throw back to the application for handling and recovery.

Most used methods

  • <init>
    Create a new walk exception an original cause.

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now