PatchApplyException.java

  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.  * Exception thrown when applying a patch fails
  13.  *
  14.  * @since 2.0
  15.  */
  16. public class PatchApplyException extends GitAPIException {
  17.     private static final long serialVersionUID = 1L;

  18.     /**
  19.      * Constructor for PatchApplyException
  20.      *
  21.      * @param message
  22.      *            error message
  23.      * @param cause
  24.      *            a {@link java.lang.Throwable}
  25.      */
  26.     public PatchApplyException(String message, Throwable cause) {
  27.         super(message, cause);
  28.     }

  29.     /**
  30.      * Constructor for PatchApplyException
  31.      *
  32.      * @param message
  33.      *            error message
  34.      */
  35.     public PatchApplyException(String message) {
  36.         super(message);
  37.     }

  38. }