public class ODataServerError
extends org.apache.olingo.commons.api.ex.ODataError
| Constructor and Description |
|---|
ODataServerError() |
| Modifier and Type | Method and Description |
|---|---|
Exception |
getException()
Gets the exception.
|
Locale |
getLocale()
Gets the locale.
|
int |
getStatusCode()
Gets the status code.
|
ODataServerError |
setAdditionalProperties(Map<String,Object> additionalProperties)
Sets server defined key-value pairs.
|
ODataServerError |
setCode(String code)
The value for the code name/value pair is a language-independent string.
|
ODataServerError |
setDetails(List<org.apache.olingo.commons.api.ex.ODataErrorDetail> details)
Sets error details.
|
ODataServerError |
setException(Exception exception)
Sets the exception.
|
ODataServerError |
setInnerError(Map<String,String> innerError)
Sets server defined key-value pairs for debug environment only.
|
ODataServerError |
setLocale(Locale locale)
Sets the locale.
|
ODataServerError |
setMessage(String message)
The value for the message name/value pair MUST be a human-readable,
language-dependent representation of the error.
|
ODataServerError |
setStatusCode(int statusCode)
Sets the status code.
|
ODataServerError |
setTarget(String target)
The value for the target name/value pair is the target of the particular error (for example, the name of the
property in error).
|
public Locale getLocale()
public ODataServerError setLocale(Locale locale)
public Exception getException()
public ODataServerError setException(Exception exception)
public int getStatusCode()
public ODataServerError setStatusCode(int statusCode)
statusCode - the status code which this error results inpublic ODataServerError setCode(String code)
setCode in class org.apache.olingo.commons.api.ex.ODataErrorpublic ODataServerError setMessage(String message)
setMessage in class org.apache.olingo.commons.api.ex.ODataErrorpublic ODataServerError setTarget(String target)
setTarget in class org.apache.olingo.commons.api.ex.ODataErrorpublic ODataServerError setDetails(List<org.apache.olingo.commons.api.ex.ODataErrorDetail> details)
setDetails in class org.apache.olingo.commons.api.ex.ODataErrorpublic ODataServerError setInnerError(Map<String,String> innerError)
setInnerError in class org.apache.olingo.commons.api.ex.ODataErrorpublic ODataServerError setAdditionalProperties(Map<String,Object> additionalProperties)
setAdditionalProperties in class org.apache.olingo.commons.api.ex.ODataErrorCopyright © 2013–2022 The Apache Software Foundation. All rights reserved.