1 /*
2 * Copyright (C) 2009, 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 /**
14 * Indicates a text string is not a valid Git style configuration.
15 */
16 public class ConfigInvalidException extends Exception {
17 private static final long serialVersionUID = 1L;
18
19 /**
20 * Construct an invalid configuration error.
21 *
22 * @param message
23 * why the configuration is invalid.
24 */
25 public ConfigInvalidException(String message) {
26 super(message);
27 }
28
29 /**
30 * Construct an invalid configuration error.
31 *
32 * @param message
33 * why the configuration is invalid.
34 * @param cause
35 * root cause of the error.
36 */
37 public ConfigInvalidException(String message, Throwable cause) {
38 super(message, cause);
39 }
40 }