Top Description Fields Constructors Methods
org.eclipse.jgit.transport

public Class ServiceMayNotContinueException

extends IOException
Class Inheritance
Imports
java.io.IOException, org.eclipse.jgit.internal.JGitText

Indicates a transport service may not continue execution.
Since
2.0

Field Summary

Modifier and TypeField and Description
private static final int
private boolean
private static final long
private final int

Constructor Summary

AccessConstructor and Description
public
ServiceMayNotContinueException()

Initialize with no message.

public
ServiceMayNotContinueException(String
a message explaining why it cannot continue. This message may be shown to an end-user.
msg
)

Constructor for ServiceMayNotContinueException.

public
ServiceMayNotContinueException(String
a message explaining why it cannot continue. This message may be shown to an end-user.
msg
,
int
the HTTP status code.
statusCode
)

Constructor for ServiceMayNotContinueException.

public
ServiceMayNotContinueException(String
a message explaining why it cannot continue. This message may be shown to an end-user.
msg
,
Throwable
the cause of the exception.
cause
)

Constructor for ServiceMayNotContinueException.

public
ServiceMayNotContinueException(String
a message explaining why it cannot continue. This message may be shown to an end-user.
msg
,
Throwable
the cause of the exception.
cause
,
int
the HTTP status code.
statusCode
)

Constructor for ServiceMayNotContinueException.

public
ServiceMayNotContinueException(Throwable
the cause of the exception.
cause
)

Initialize with an "internal server error" message and a cause.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

true if the message was already output to the client.
getStatusCode
()

Get status code

public boolean

Returns:

true if the message was already output to the client.
isOutput
()

Whether the message was already output to the client.

public void
setOutput()

Mark this message has being sent to the client.

Field Detail

FORBIDDENback to summary
private static final int FORBIDDEN
outputback to summary
private boolean output
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.IOException.serialVersionUID.

statusCodeback to summary
private final int statusCode

Constructor Detail

ServiceMayNotContinueExceptionback to summary
public ServiceMayNotContinueException()

Initialize with no message.

ServiceMayNotContinueExceptionback to summary
public ServiceMayNotContinueException(String msg)

Constructor for ServiceMayNotContinueException.

Parameters
msg:String

a message explaining why it cannot continue. This message may be shown to an end-user.

ServiceMayNotContinueExceptionback to summary
public ServiceMayNotContinueException(String msg, int statusCode)

Constructor for ServiceMayNotContinueException.

Parameters
msg:String

a message explaining why it cannot continue. This message may be shown to an end-user.

statusCode:int

the HTTP status code.

Since
4.5
ServiceMayNotContinueExceptionback to summary
public ServiceMayNotContinueException(String msg, Throwable cause)

Constructor for ServiceMayNotContinueException.

Parameters
msg:String

a message explaining why it cannot continue. This message may be shown to an end-user.

cause:Throwable

the cause of the exception.

Since
3.2
ServiceMayNotContinueExceptionback to summary
public ServiceMayNotContinueException(String msg, Throwable cause, int statusCode)

Constructor for ServiceMayNotContinueException.

Parameters
msg:String

a message explaining why it cannot continue. This message may be shown to an end-user.

cause:Throwable

the cause of the exception.

statusCode:int

the HTTP status code.

Since
4.5
ServiceMayNotContinueExceptionback to summary
public ServiceMayNotContinueException(Throwable cause)

Initialize with an "internal server error" message and a cause.

Parameters
cause:Throwable

the cause of the exception.

Since
3.2

Method Detail

getStatusCodeback to summary
public int getStatusCode()

Get status code

Returns:int

true if the message was already output to the client.

Since
4.5
isOutputback to summary
public boolean isOutput()

Whether the message was already output to the client.

Returns:boolean

true if the message was already output to the client.

setOutputback to summary
public void setOutput()

Mark this message has being sent to the client.