You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

StopWalkException.java 821B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (C) 2009, Google Inc.
  3. * Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org> and others
  4. *
  5. * This program and the accompanying materials are made available under the
  6. * terms of the Eclipse Distribution License v. 1.0 which is available at
  7. * https://www.eclipse.org/org/documents/edl-v10.php.
  8. *
  9. * SPDX-License-Identifier: BSD-3-Clause
  10. */
  11. package org.eclipse.jgit.errors;
  12. /**
  13. * Stops the driver loop of walker and finish with current results.
  14. *
  15. * @see org.eclipse.jgit.revwalk.filter.RevFilter
  16. */
  17. public class StopWalkException extends RuntimeException {
  18. private static final long serialVersionUID = 1L;
  19. /** Singleton instance for throwing within a filter. */
  20. public static final StopWalkException INSTANCE = new StopWalkException();
  21. private StopWalkException() {
  22. // Nothing.
  23. }
  24. }