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
12 package org.eclipse.jgit.errors;
13
14 /**
15 * Stops the driver loop of walker and finish with current results.
16 *
17 * @see org.eclipse.jgit.revwalk.filter.RevFilter
18 */
19 public class StopWalkException extends RuntimeException {
20 private static final long serialVersionUID = 1L;
21
22 /** Singleton instance for throwing within a filter. */
23 public static final StopWalkException INSTANCE = new StopWalkException();
24
25 private StopWalkException() {
26 // Nothing.
27 }
28 }