public class ODataException extends Exception
| Constructor and Description |
|---|
ODataException() |
ODataException(ODataExceptionType exceptionType,
String s)
Constructs the ODataException object.
|
ODataException(ODataExceptionType exceptionType,
String s,
int statusCode,
Throwable e)
Constructs the ODataException object.
|
ODataException(ODataExceptionType exceptionType,
String s,
Throwable e)
Constructs the ODataException object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCode()
Returns the error code from the backend odata service if any.
|
String |
getHttpErrorResponseBody() |
org.apache.http.Header[] |
getHttpHeaders() |
int |
getHttpStatusCode() |
String |
getHttpStatusLine() |
String |
getMessage() |
ODataExceptionType |
getODataExceptionType()
Returns the ODataExceptionType associated with this ODataException.
|
void |
setCode(String code) |
void |
setMessage(String message) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ODataException(ODataExceptionType exceptionType, String s, Throwable e)
exceptionType - Type of exception. If it is null, then the default exception type is ODataExceptionType.OTHER.s - String containing the error messagee - The exception objectpublic ODataException(ODataExceptionType exceptionType, String s)
exceptionType - Type of exception. If it is null, then the default exception type is ODataExceptionType.OTHER.String - containing the error messagee - The exception objectpublic ODataException(ODataExceptionType exceptionType, String s, int statusCode, Throwable e)
exceptionType - Type of exception. If it is null, then the default exception type is ODataExceptionType.OTHER.String - containing the error messagestatus - containing HttpStatusCodee - The exception objectpublic ODataException()
public ODataExceptionType getODataExceptionType()
public void setCode(String code)
public void setMessage(String message)
public String getMessage()
getMessage in class Throwablepublic String getCode()
public int getHttpStatusCode()
public String getHttpStatusLine()
public org.apache.http.Header[] getHttpHeaders()
public String getHttpErrorResponseBody()
Copyright © 2020 SAP. All Rights Reserved.