public class ResponseException extends RuntimeException
Constructor and Description |
---|
ResponseException(int statusCode,
String body,
List<ResponseHeader> headers) |
Modifier and Type | Method and Description |
---|---|
String |
getBody() |
ResponseHeader |
getHeader(String headerName) |
List<ResponseHeader> |
getHeaders() |
String |
getHeaderValue(String headerName) |
int |
getStatusCode() |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public ResponseException(int statusCode, String body, List<ResponseHeader> headers)
public int getStatusCode()
public String getBody()
public List<ResponseHeader> getHeaders()
null
.public ResponseHeader getHeader(String headerName)
null
if there was no such header.public String getHeaderValue(String headerName)
null
if there was no such header.Copyright © 2024 Worldline Global Collect. All rights reserved.