summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2012-10-08 06:27:30 +0200
committerRobin Rosenberg <robin.rosenberg@dewire.com>2012-10-14 20:55:14 +0200
commit47a9b996c75421e1d7f4dafdc0825bfe9938e94e (patch)
tree3b16cfc2f2a6f226164b1cf446e910581120215c
parent6da9473fe363c6419d35f5d0af49fef98ad1a0bc (diff)
downloadjgit-47a9b996c75421e1d7f4dafdc0825bfe9938e94e.tar.gz
jgit-47a9b996c75421e1d7f4dafdc0825bfe9938e94e.zip
Add a hint on the purpose of JGitInternalException to the constructor
In code review we often see uses of JGitInternalException where a high level GitAPIException would be more appropriate. Hopefully the word low-level in the constructor comment will lead to fewer such cases. Change-Id: Id5ec7897535f6c5c5f0bd153fe0ff15c65083474
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/errors/JGitInternalException.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/errors/JGitInternalException.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/errors/JGitInternalException.java
index 9042daddcc..ca562005ff 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/api/errors/JGitInternalException.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/errors/JGitInternalException.java
@@ -60,6 +60,8 @@ public class JGitInternalException extends RuntimeException {
private static final long serialVersionUID = 1L;
/**
+ * Construct an exception for low-level internal exceptions
+ *
* @param message
* @param cause
*/
@@ -68,6 +70,8 @@ public class JGitInternalException extends RuntimeException {
}
/**
+ * Construct an exception for low-level internal exceptions
+ *
* @param message
*/
public JGitInternalException(String message) {