diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ServiceMayNotContinueException.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ServiceMayNotContinueException.java index fde23b3fa..4c518eea9 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ServiceMayNotContinueException.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ServiceMayNotContinueException.java @@ -79,7 +79,8 @@ public class ServiceMayNotContinueException extends IOException { * the cause of the exception. */ public ServiceMayNotContinueException(String msg, Throwable cause) { - super(msg, cause); + super(msg); + initCause(cause); } /** @@ -89,7 +90,7 @@ public class ServiceMayNotContinueException extends IOException { * the cause of the exception. */ public ServiceMayNotContinueException(Throwable cause) { - super(JGitText.get().internalServerError, cause); + this(JGitText.get().internalServerError, cause); } /** @return true if the message was already output to the client. */