IOException did not add a (String, Throwable) constructor until 1.5.
Instead use the String super constructor and initCause to initialize
the exception.
Fixes bug 418889
Change-Id: Ide735ecfc7d04884981b79b57a4275863ce17006
* the cause of the exception.
*/
public ServiceMayNotContinueException(String msg, Throwable cause) {
- super(msg, cause);
+ super(msg);
+ initCause(cause);
}
/**
* 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. */