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() |
getRequest
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
@Beta public 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 ODataException
protected boolean canEqual(@Nullable Object other)
canEqual
in class ODataException
public int hashCode()
hashCode
in class ODataException
public int getHttpCode()
@Nonnull public Collection<org.apache.http.Header> getHttpHeaders()
Copyright © 2021 SAP SE. All rights reserved.