View Javadoc
1   /*
2    * Copyright (C) 2007, Robin Rosenberg <robin.rosenberg@dewire.com>
3    * Copyright (C) 2006-2007, Shawn O. Pearce <spearce@spearce.org> and others
4    *
5    * This program and the accompanying materials are made available under the
6    * terms of the Eclipse Distribution License v. 1.0 which is available at
7    * https://www.eclipse.org/org/documents/edl-v10.php.
8    *
9    * SPDX-License-Identifier: BSD-3-Clause
10   */
11  
12  package org.eclipse.jgit.errors;
13  
14  import java.io.IOException;
15  
16  /**
17   * Cannot store an object in the object database. This is a serious
18   * error that users need to be made aware of.
19   */
20  public class ObjectWritingException extends IOException {
21  	private static final long serialVersionUID = 1L;
22  
23  	/**
24  	 * Constructs an ObjectWritingException with the specified detail message.
25  	 *
26  	 * @param s message
27  	 */
28  	public ObjectWritingException(String s) {
29  		super(s);
30  	}
31  
32  	/**
33  	 * Constructs an ObjectWritingException with the specified detail message.
34  	 *
35  	 * @param s message
36  	 * @param cause root cause exception
37  	 */
38  	public ObjectWritingException(String s, Throwable cause) {
39  		super(s);
40  		initCause(cause);
41  	}
42  }