public class ODataServiceErrorException extends ODataResponseException
ODataException representing an erroneous response from the service where the payload contained detailed
OData error information.| Constructor and Description |
|---|
ODataServiceErrorException(ODataRequestGeneric request,
org.apache.http.HttpResponse httpResponse,
String message,
Throwable cause,
ODataServiceError odataError)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
ODataServiceError |
getOdataError()
The parsed
ODataServiceError that was found in the HTTP response body. |
int |
hashCode() |
getHttpBody, getHttpCode, getHttpHeadersgetRequestaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString@Beta public ODataServiceErrorException(@Nonnull ODataRequestGeneric request, @Nonnull org.apache.http.HttpResponse httpResponse, @Nonnull String message, @Nullable Throwable cause, @Nonnull ODataServiceError odataError)
request - The original OData request reference.httpResponse - The failing HTTP response reference.message - The error message.cause - The error cause, if any.odataError - The parsed odata error contained in the HTTP response.public boolean equals(@Nullable Object o)
equals in class ODataResponseExceptionprotected boolean canEqual(@Nullable Object other)
canEqual in class ODataResponseExceptionpublic int hashCode()
hashCode in class ODataResponseException@Nonnull public ODataServiceError getOdataError()
ODataServiceError that was found in the HTTP response body.Copyright © 2021 SAP SE. All rights reserved.