public class ServiceMayNotContinueException
extends java.io.IOException
Modifier and Type | Field and Description |
---|---|
private static int |
FORBIDDEN |
private boolean |
output |
private static long |
serialVersionUID |
private int |
statusCode |
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
int |
getStatusCode()
Get status code
|
boolean |
isOutput()
Whether the message was already output to the client.
|
void |
setOutput()
Mark this message has being sent to the client.
|
private static final int FORBIDDEN
private static final long serialVersionUID
private final int statusCode
private boolean output
public ServiceMayNotContinueException()
public ServiceMayNotContinueException(java.lang.String msg)
Constructor for ServiceMayNotContinueException.
msg
- a message explaining why it cannot continue. This message may
be shown to an end-user.public ServiceMayNotContinueException(java.lang.String msg, int statusCode)
Constructor for ServiceMayNotContinueException.
msg
- a message explaining why it cannot continue. This message may
be shown to an end-user.statusCode
- the HTTP status code.public ServiceMayNotContinueException(java.lang.String msg, java.lang.Throwable cause)
Constructor for ServiceMayNotContinueException.
msg
- a message explaining why it cannot continue. This message may
be shown to an end-user.cause
- the cause of the exception.public ServiceMayNotContinueException(java.lang.String msg, java.lang.Throwable cause, int statusCode)
Constructor for ServiceMayNotContinueException.
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.public ServiceMayNotContinueException(java.lang.Throwable cause)
cause
- the cause of the exception.public boolean isOutput()
true
if the message was already output to the client.public void setOutput()
public int getStatusCode()