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
11 package org.eclipse.jgit.errors;
12
13 import org.eclipse.jgit.internal.storage.pack.ObjectToPack;
14
15 /**
16 * A previously selected representation is no longer available.
17 */
18 public class StoredObjectRepresentationNotAvailableException extends Exception { //TODO remove unused ObjectToPack in 5.0
19 private static final long serialVersionUID = 1L;
20
21 /**
22 * Construct an error for an object.
23 *
24 * @param otp
25 * the object whose current representation is no longer present.
26 * @param cause
27 * cause
28 * @since 4.10
29 */
30 public StoredObjectRepresentationNotAvailableException(ObjectToPack otp,
31 Throwable cause) {
32 super(cause);
33 // Do nothing.
34 }
35 }