public class ODataResponseException extends ODataException
ODataException representing an erroneous service response. This exception class comprises details
of the HTTP response.| Constructor and Description |
|---|
ODataResponseException(ODataRequestGeneric request,
org.apache.http.HttpResponse httpResponse,
String message,
Throwable cause)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
io.vavr.control.Option<String> |
getHttpBody()
The content of the HTTP response body as plain text or null, if the response did not contain a body.
|
int |
getHttpCode()
The HTTP status code of the response received.
|
Collection<org.apache.http.Header> |
getHttpHeaders()
The HTTP headers returned with the response.
|
int |
hashCode() |
getRequestaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ODataResponseException(@Nonnull ODataRequestGeneric request, @Nonnull org.apache.http.HttpResponse httpResponse, @Nonnull String message, @Nullable Throwable cause)
request - The original OData request reference.httpResponse - The HttpResponse that gave raise to this exception.message - The error message.cause - The error cause.public boolean equals(@Nullable Object o)
equals in class ODataExceptionprotected boolean canEqual(@Nullable Object other)
canEqual in class ODataExceptionpublic int hashCode()
hashCode in class ODataExceptionpublic int getHttpCode()
@Nonnull public Collection<org.apache.http.Header> getHttpHeaders()
Copyright © 2022 SAP SE. All rights reserved.