1 /*
2 * Copyright (C) 2010, Google Inc. and others
3 *
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Distribution License v. 1.0 which is available at
6 * https://www.eclipse.org/org/documents/edl-v10.php.
7 *
8 * SPDX-License-Identifier: BSD-3-Clause
9 */
10
11 package org.eclipse.jgit.errors;
12
13 import org.eclipse.jgit.internal.JGitText;
14
15 /**
16 * Indicates a {@link org.eclipse.jgit.lib.Repository} has no working directory,
17 * and is thus bare.
18 */
19 public class NoWorkTreeException extends IllegalStateException {
20 private static final long serialVersionUID = 1L;
21
22 /**
23 * Creates an exception indicating there is no work tree for a repository.
24 */
25 public NoWorkTreeException() {
26 super(JGitText.get().bareRepositoryNoWorkdirAndIndex);
27 }
28 }