public class ApiException extends Exception
Constructor and Description |
---|
ApiException(ApiErrorResponse errorResponse) |
ApiException(int code,
Map<String,List<String>> responseHeaders) |
ApiException(int code,
String message,
Map<String,List<String>> responseHeaders) |
ApiException(int code,
String message,
Map<String,List<String>> responseHeaders,
String responseBody) |
ApiException(String message) |
ApiException(String message,
com.sdl.delivery.iq.index.api.client.IndexServiceResponseData<?> indexApiResponse) |
ApiException(String message,
int code,
Map<String,List<String>> responseHeaders) |
ApiException(String message,
int code,
Map<String,List<String>> responseHeaders,
String responseBody) |
ApiException(String message,
Throwable throwable) |
ApiException(String message,
Throwable throwable,
int code,
Map<String,List<String>> responseHeaders) |
ApiException(String message,
Throwable throwable,
int code,
Map<String,List<String>> responseHeaders,
String responseBody) |
ApiException(Throwable throwable) |
ApiException(Throwable throwable,
int code,
Map<String,List<String>> responseHeaders) |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Get the HTTP status code.
|
Optional<com.sdl.delivery.iq.index.api.client.IndexServiceResponseData<?>> |
getIndexServiceResponse() |
Optional<Object> |
getResponseBody()
Get the HTTP response body.
|
Optional<Map<String,List<String>>> |
getResponseHeaders()
Get the HTTP response headers.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ApiException(String message, com.sdl.delivery.iq.index.api.client.IndexServiceResponseData<?> indexApiResponse)
public ApiException(String message)
public ApiException(Throwable throwable)
public ApiException(ApiErrorResponse errorResponse)
public ApiException(Throwable throwable, int code, Map<String,List<String>> responseHeaders)
public ApiException(String message, int code, Map<String,List<String>> responseHeaders)
public ApiException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders)
public ApiException(String message, int code, Map<String,List<String>> responseHeaders, String responseBody)
public ApiException(String message, Throwable throwable, int code, Map<String,List<String>> responseHeaders, String responseBody)
public ApiException(int code, String message, Map<String,List<String>> responseHeaders)
public int getCode()
public Optional<Map<String,List<String>>> getResponseHeaders()
public Optional<Object> getResponseBody()
public Optional<com.sdl.delivery.iq.index.api.client.IndexServiceResponseData<?>> getIndexServiceResponse()
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries