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:
Serializable
Indicates a transport service may not continue execution.
- Since:
- 2.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private boolean
private static final long
private final int
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize with no message.Constructor for ServiceMayNotContinueException.ServiceMayNotContinueException
(String msg, int statusCode) Constructor for ServiceMayNotContinueException.ServiceMayNotContinueException
(String msg, Throwable cause) Constructor for ServiceMayNotContinueException.ServiceMayNotContinueException
(String msg, Throwable cause, int statusCode) Constructor for ServiceMayNotContinueException.Initialize with an "internal server error" message and a cause. -
Method Summary
Modifier and TypeMethodDescriptionint
Get status codeboolean
isOutput()
Whether the message was already output to the client.void
Mark this message has being sent to the client.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
FORBIDDEN
private static final int FORBIDDEN- See Also:
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
statusCode
private final int statusCode -
output
private boolean output
-
-
Constructor Details
-
ServiceMayNotContinueException
public ServiceMayNotContinueException()Initialize with no message. -
ServiceMayNotContinueException
Constructor for ServiceMayNotContinueException.
- Parameters:
msg
- a message explaining why it cannot continue. This message may be shown to an end-user.
-
ServiceMayNotContinueException
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
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
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
Initialize with an "internal server error" message and a cause.- Parameters:
cause
- the cause of the exception.- Since:
- 3.2
-
-
Method Details
-
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
-