StoredObjectRepresentationNotAvailableException.java

  1. /*
  2.  * Copyright (C) 2010, 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. package org.eclipse.jgit.errors;

  11. import org.eclipse.jgit.internal.storage.pack.ObjectToPack;

  12. /**
  13.  * A previously selected representation is no longer available.
  14.  */
  15. public class StoredObjectRepresentationNotAvailableException extends Exception { //TODO remove unused ObjectToPack in 5.0
  16.     private static final long serialVersionUID = 1L;

  17.     /**
  18.      * Construct an error for an object.
  19.      *
  20.      * @param otp
  21.      *            the object whose current representation is no longer present.
  22.      * @param cause
  23.      *            cause
  24.      * @since 4.10
  25.      */
  26.     public StoredObjectRepresentationNotAvailableException(ObjectToPack otp,
  27.             Throwable cause) {
  28.         super(cause);
  29.         // Do nothing.
  30.     }
  31. }