public class ODataServerError extends 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<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).
|
getAdditionalProperties, getCode, getDetails, getInnerError, getMessage, getTargetpublic 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 ODataErrorcode - the service defined error code for this errorpublic ODataServerError setMessage(String message)
setMessage in class ODataErrormessage - message for this errorpublic ODataServerError setTarget(String target)
setTarget in class ODataErrortarget - target to which this error is related topublic ODataServerError setDetails(List<ODataErrorDetail> details)
setDetails in class ODataErrorpublic ODataServerError setInnerError(Map<String,String> innerError)
setInnerError in class ODataErrorpublic ODataServerError setAdditionalProperties(Map<String,Object> additionalProperties)
setAdditionalProperties in class ODataErrorCopyright © 2013–2023 The Apache Software Foundation. All rights reserved.