1 /* 2 * Copyright (C) 2011, Robin Rosenberg 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.dircache; 12 13 import java.text.MessageFormat; 14 15 import org.eclipse.jgit.internal.JGitText; 16 17 /** 18 * Thrown when JGit detects and refuses to use an invalid path 19 * 20 * @since 2.0 21 */ 22 public class InvalidPathException extends IllegalArgumentException { 23 24 private static final long serialVersionUID = 1L; 25 26 /** 27 * Constructor for InvalidPathException 28 * 29 * @param path 30 * the invalid path 31 */ InvalidPathException(String path)32 public InvalidPathException(String path) { 33 this(JGitText.get().invalidPath, path); 34 } 35 InvalidPathException(String messagePattern, Object... arguments)36 InvalidPathException(String messagePattern, Object... arguments) { 37 super(MessageFormat.format(messagePattern, arguments)); 38 } 39 } 40