public abstract class ServiceException extends RuntimeException
| Modifier and Type | Field and Description |
|---|---|
protected List<StatusResponse> |
statuses |
| Constructor and Description |
|---|
ServiceException(int code) |
ServiceException(int code,
String message) |
ServiceException(int code,
String message,
String requestBody) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStatus(StatusResponse status) |
int |
getOverallStatusCode() |
javax.ws.rs.WebApplicationException |
getRestException() |
javax.ws.rs.core.Response |
toResponse() |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceprotected List<StatusResponse> statuses
public ServiceException(int code)
public ServiceException(int code,
String message)
public void addStatus(StatusResponse status)
public int getOverallStatusCode()
public javax.ws.rs.core.Response toResponse()
public javax.ws.rs.WebApplicationException getRestException()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.