public class ServiceException
extends java.lang.Exception
Service
SPI encountered an
error.Constructor and Description |
---|
ServiceException()
Constructs a new instance with null as its detail message and cause.
|
ServiceException(int httpServletResponseCode)
Constructs a new instance with a HTTP response code and a null detail message and cause.
|
ServiceException(java.lang.String message)
Constructs a new instance with the specified detail message.
|
ServiceException(java.lang.String message,
int httpServletResponseCode)
Constructs a new instance with the specified detail message and HTTP servlet response code.
|
ServiceException(java.lang.String message,
java.lang.Throwable throwable)
Constructs a new instance with the specified detail message and cause.
|
ServiceException(java.lang.String message,
java.lang.Throwable throwable,
int httpServletResponseCode)
Constructs a new instance with the specified detailed message, cause, and HTTP servlet response code.
|
ServiceException(java.lang.Throwable throwable)
Constructs a new instance with the specified cause.
|
ServiceException(java.lang.Throwable throwable,
int httpServletResponseCode)
Constructs a new instance with the specified cause and HTTP servlet response code.
|
Modifier and Type | Method and Description |
---|---|
int |
getHttpServletResponseCode()
Returns the HTTP servlet response code of this Throwable.
|
ServiceStatus |
getServiceStatus()
Retrieves the ServiceStatus instance.
|
void |
setServiceStatus(ServiceStatus serviceStatus)
Sets a serviceStatus object containing service status information.
|
public ServiceException()
public ServiceException(int httpServletResponseCode)
httpServletResponseCode
- The HTTP servlet response code to return to the caller.public ServiceException(java.lang.String message)
message
- The detail message.public ServiceException(java.lang.String message, int httpServletResponseCode)
message
- The detail message.httpServletResponseCode
- The HTTP servlet response code.public ServiceException(java.lang.Throwable throwable)
throwable
- The cause of type Throwable.public ServiceException(java.lang.Throwable throwable, int httpServletResponseCode)
throwable
- The cause of type Throwable.httpServletResponseCode
- The HTTP servlet response code.public ServiceException(java.lang.String message, java.lang.Throwable throwable)
message
- The detail message.throwable
- The cause of type Throwable.public ServiceException(java.lang.String message, java.lang.Throwable throwable, int httpServletResponseCode)
message
- The detail message.throwable
- The cause of type Throwable.httpServletResponseCode
- The HTTP servlet response code.public void setServiceStatus(ServiceStatus serviceStatus)
serviceStatus
- The status.public ServiceStatus getServiceStatus()
public int getHttpServletResponseCode()