You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ObjectWritingException.java 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. package org.eclipse.jgit.errors;
  12. import java.io.IOException;
  13. /**
  14. * Cannot store an object in the object database. This is a serious
  15. * error that users need to be made aware of.
  16. */
  17. public class ObjectWritingException extends IOException {
  18. private static final long serialVersionUID = 1L;
  19. /**
  20. * Constructs an ObjectWritingException with the specified detail message.
  21. *
  22. * @param s message
  23. */
  24. public ObjectWritingException(String s) {
  25. super(s);
  26. }
  27. /**
  28. * Constructs an ObjectWritingException with the specified detail message.
  29. *
  30. * @param s message
  31. * @param cause root cause exception
  32. */
  33. public ObjectWritingException(String s, Throwable cause) {
  34. super(s);
  35. initCause(cause);
  36. }
  37. }