@Beta public class ODataErrorResponseException extends ODataServiceException
Constructor and Description |
---|
ODataErrorResponseException(ODataRequestGeneric request,
org.apache.http.HttpResponse httpResponse,
ODataServiceErrorRoot error,
String message,
Throwable cause)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
ODataServiceErrorRoot |
getError() |
int |
hashCode() |
getHttpCode, getHttpHeaders, getHttpReason
getRequest
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ODataErrorResponseException(@Nonnull ODataRequestGeneric request, @Nonnull org.apache.http.HttpResponse httpResponse, @Nonnull ODataServiceErrorRoot error, @Nonnull String message, @Nullable Throwable cause)
request
- The original OData request reference.httpResponse
- The failing HTTP response reference.error
- The OData error object.message
- The error message.cause
- The error cause.public boolean equals(@Nullable Object o)
equals
in class ODataServiceException
protected boolean canEqual(@Nullable Object other)
canEqual
in class ODataServiceException
public int hashCode()
hashCode
in class ODataServiceException
@Nonnull public ODataServiceErrorRoot getError()
Copyright © 2020 SAP SE. All rights reserved.