|
|
@@ -45,8 +45,6 @@ package org.eclipse.jgit.transport; |
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
import org.eclipse.jgit.internal.JGitText; |
|
|
|
|
|
|
|
/** |
|
|
@@ -55,6 +53,7 @@ import org.eclipse.jgit.internal.JGitText; |
|
|
|
* @since 2.0 |
|
|
|
*/ |
|
|
|
public class ServiceMayNotContinueException extends IOException { |
|
|
|
private static final int FORBIDDEN = 403; |
|
|
|
private static final long serialVersionUID = 1L; |
|
|
|
|
|
|
|
private final int statusCode; |
|
|
@@ -63,7 +62,7 @@ public class ServiceMayNotContinueException extends IOException { |
|
|
|
/** Initialize with no message. */ |
|
|
|
public ServiceMayNotContinueException() { |
|
|
|
// Do not set a message. |
|
|
|
statusCode = HttpServletResponse.SC_FORBIDDEN; |
|
|
|
statusCode = FORBIDDEN; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@@ -73,7 +72,7 @@ public class ServiceMayNotContinueException extends IOException { |
|
|
|
*/ |
|
|
|
public ServiceMayNotContinueException(String msg) { |
|
|
|
super(msg); |
|
|
|
statusCode = HttpServletResponse.SC_FORBIDDEN; |
|
|
|
statusCode = FORBIDDEN; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@@ -99,7 +98,7 @@ public class ServiceMayNotContinueException extends IOException { |
|
|
|
*/ |
|
|
|
public ServiceMayNotContinueException(String msg, Throwable cause) { |
|
|
|
super(msg, cause); |
|
|
|
statusCode = HttpServletResponse.SC_FORBIDDEN; |
|
|
|
statusCode = FORBIDDEN; |
|
|
|
} |
|
|
|
|
|
|
|
/** |