1 /*
2 * Copyright (C) 2012, IBM Corporation and others. 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 package org.eclipse.jgit.api.errors;
11
12 /**
13 * Exception thrown when applying a patch fails
14 *
15 * @since 2.0
16 */
17 public class PatchApplyException extends GitAPIException {
18 private static final long serialVersionUID = 1L;
19
20 /**
21 * Constructor for PatchApplyException
22 *
23 * @param message
24 * error message
25 * @param cause
26 * a {@link java.lang.Throwable}
27 */
28 public PatchApplyException(String message, Throwable cause) {
29 super(message, cause);
30 }
31
32 /**
33 * Constructor for PatchApplyException
34 *
35 * @param message
36 * error message
37 */
38 public PatchApplyException(String message) {
39 super(message);
40 }
41
42 }