aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/dircache/InvalidPathException.java
blob: f067f4c3299c3bee3cf2f6ce6040a7c564de5452 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * Copyright (C) 2011, Robin Rosenberg and others
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Distribution License v. 1.0 which is available at
 * https://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

package org.eclipse.jgit.dircache;

import java.text.MessageFormat;

import org.eclipse.jgit.internal.JGitText;

/**
 * Thrown when JGit detects and refuses to use an invalid path
 *
 * @since 2.0
 */
public class InvalidPathException extends IllegalArgumentException {

	private static final long serialVersionUID = 1L;

	/**
	 * Constructor for InvalidPathException
	 *
	 * @param path
	 *            the invalid path
	 */
	public InvalidPathException(String path) {
		this(JGitText.get().invalidPath, path);
	}

	InvalidPathException(String messagePattern, Object... arguments) {
		super(MessageFormat.format(messagePattern, arguments));
	}
}