public class ServiceException extends RuntimeException
| Constructor and Description |
|---|
ServiceException(String message,
int statusCode,
List<Pair<String,String>> headers,
Object body) |
ServiceException(String message,
int statusCode,
List<Pair<String,String>> headers,
Object body,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getBody() |
List<Pair<String,String>> |
getHeaders()
Gets the headers of the Http Response that return the failure.
|
int |
getStatusCode()
Gets the status code of the Http Response
|
void |
setBody(String body) |
void |
setHeaders(List<Pair<String,String>> headers)
Sets the headers of the Http Response that return the failure.
|
void |
setStatusCode(int statusCode)
Sets the status code of the Http Response
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ServiceException(String message, int statusCode, List<Pair<String,String>> headers, Object body)
public int getStatusCode()
public void setStatusCode(int statusCode)
public List<Pair<String,String>> getHeaders()
public void setHeaders(List<Pair<String,String>> headers)
public Object getBody()
public void setBody(String body)
Copyright © 2019. All rights reserved.