Thread (6 messages) 6 messages, 1 author, 2016-06-15

[JGIT PATCH 3/5] Add ConfigInvalidException constructor to take Throwable

flat view
DORMANTno replies

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:47:07
Subsystem: the rest · Maintainer: Linus Torvalds

This permits applications to wrap a ConfigInvalidException with
more detail before throwing it to the caller.

Signed-off-by: Shawn O. Pearce <redacted>
---
 .../jgit/errors/ConfigInvalidException.java        |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/org.spearce.jgit/src/org/spearce/jgit/errors/ConfigInvalidException.java b/org.spearce.jgit/src/org/spearce/jgit/errors/ConfigInvalidException.java
index 6e861fd..28c87a5 100644
--- a/org.spearce.jgit/src/org/spearce/jgit/errors/ConfigInvalidException.java
+++ b/org.spearce.jgit/src/org/spearce/jgit/errors/ConfigInvalidException.java
@@ -50,4 +50,16 @@
 	public ConfigInvalidException(final String message) {
 		super(message);
 	}
+
+	/**
+	 * Construct an invalid configuration error.
+	 *
+	 * @param message
+	 *            why the configuration is invalid.
+	 * @param cause
+	 *            root cause of the error.
+	 */
+	public ConfigInvalidException(final String message, final Throwable cause) {
+		super(message, cause);
+	}
 }
-- 
1.6.4.rc3.201.gd9d59
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help