Fix ServiceMayNotContinueException constructors for Java 1.5
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
This commit is contained in:
parent
a27529c822
commit
06ddee1c3f
|
@ -79,7 +79,8 @@ public ServiceMayNotContinueException(String msg) {
|
||||||
* the cause of the exception.
|
* the cause of the exception.
|
||||||
*/
|
*/
|
||||||
public ServiceMayNotContinueException(String msg, Throwable cause) {
|
public ServiceMayNotContinueException(String msg, Throwable cause) {
|
||||||
super(msg, cause);
|
super(msg);
|
||||||
|
initCause(cause);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -89,7 +90,7 @@ public ServiceMayNotContinueException(String msg, Throwable cause) {
|
||||||
* the cause of the exception.
|
* the cause of the exception.
|
||||||
*/
|
*/
|
||||||
public ServiceMayNotContinueException(Throwable cause) {
|
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. */
|
/** @return true if the message was already output to the client. */
|
||||||
|
|
Loading…
Reference in New Issue