Package org.eclipse.jgit.transport
Class ServiceMayNotContinueException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.eclipse.jgit.transport.ServiceMayNotContinueException
-
- All Implemented Interfaces:
java.io.Serializable
public class ServiceMayNotContinueException extends java.io.IOException
Indicates a transport service may not continue execution.- Since:
- 2.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static int
FORBIDDEN
private boolean
output
private static long
serialVersionUID
private int
statusCode
-
Constructor Summary
Constructors Constructor Description ServiceMayNotContinueException()
Initialize with no message.ServiceMayNotContinueException(java.lang.String msg)
Constructor for ServiceMayNotContinueException.ServiceMayNotContinueException(java.lang.String msg, int statusCode)
Constructor for ServiceMayNotContinueException.ServiceMayNotContinueException(java.lang.String msg, java.lang.Throwable cause)
Constructor for ServiceMayNotContinueException.ServiceMayNotContinueException(java.lang.String msg, java.lang.Throwable cause, int statusCode)
Constructor for ServiceMayNotContinueException.ServiceMayNotContinueException(java.lang.Throwable cause)
Initialize with an "internal server error" message and a cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getStatusCode()
Get status codeboolean
isOutput()
Whether the message was already output to the client.void
setOutput()
Mark this message has being sent to the client.
-
-
-
Field Detail
-
FORBIDDEN
private static final int FORBIDDEN
- See Also:
- Constant Field Values
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
statusCode
private final int statusCode
-
output
private boolean output
-
-
Constructor Detail
-
ServiceMayNotContinueException
public ServiceMayNotContinueException()
Initialize with no message.
-
ServiceMayNotContinueException
public ServiceMayNotContinueException(java.lang.String msg)
Constructor for ServiceMayNotContinueException.
- Parameters:
msg
- a message explaining why it cannot continue. This message may be shown to an end-user.
-
ServiceMayNotContinueException
public ServiceMayNotContinueException(java.lang.String msg, int statusCode)
Constructor for ServiceMayNotContinueException.
- Parameters:
msg
- a message explaining why it cannot continue. This message may be shown to an end-user.statusCode
- the HTTP status code.- Since:
- 4.5
-
ServiceMayNotContinueException
public ServiceMayNotContinueException(java.lang.String msg, java.lang.Throwable cause)
Constructor for ServiceMayNotContinueException.
- Parameters:
msg
- a message explaining why it cannot continue. This message may be shown to an end-user.cause
- the cause of the exception.- Since:
- 3.2
-
ServiceMayNotContinueException
public ServiceMayNotContinueException(java.lang.String msg, java.lang.Throwable cause, int statusCode)
Constructor for ServiceMayNotContinueException.
- Parameters:
msg
- a message explaining why it cannot continue. This message may be shown to an end-user.cause
- the cause of the exception.statusCode
- the HTTP status code.- Since:
- 4.5
-
ServiceMayNotContinueException
public ServiceMayNotContinueException(java.lang.Throwable cause)
Initialize with an "internal server error" message and a cause.- Parameters:
cause
- the cause of the exception.- Since:
- 3.2
-
-
Method Detail
-
isOutput
public boolean isOutput()
Whether the message was already output to the client.- Returns:
true
if the message was already output to the client.
-
setOutput
public void setOutput()
Mark this message has being sent to the client.
-
getStatusCode
public int getStatusCode()
Get status code- Returns:
- true if the message was already output to the client.
- Since:
- 4.5
-
-