public class ODataError extends Object
| Constructor and Description | 
|---|
| ODataError() | 
| Modifier and Type | Method and Description | 
|---|---|
| Map<String,Object> | getAdditionalProperties()Gets server defined additional properties. | 
| String | getCode()The value for the code name/value pair is a language-independent string. | 
| List<ODataErrorDetail> | getDetails()Gets error details. | 
| Map<String,String> | getInnerError()Gets server defined key-value pairs for debug environment only. | 
| String | getMessage()The value for the message name/value pair MUST be a human-readable, language-dependent representation of the error. | 
| String | getTarget()The value for the target name/value pair is the target of the particular error (for example, the name of the
 property in error). | 
| ODataError | setAdditionalProperties(Map<String,Object> additionalProperties)Sets server defined additional properties | 
| ODataError | setCode(String code)The value for the code name/value pair is a language-independent string. | 
| ODataError | setDetails(List<ODataErrorDetail> details)Sets error details. | 
| ODataError | setInnerError(Map<String,String> innerError)Sets server defined key-value pairs for debug environment only. | 
| ODataError | setMessage(String message)The value for the message name/value pair MUST be a human-readable, language-dependent representation of the error. | 
| ODataError | 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 String getCode()
public ODataError setCode(String code)
code - the service defined error code for this errorpublic String getMessage()
public ODataError setMessage(String message)
message - message for this errorpublic String getTarget()
public ODataError setTarget(String target)
target - target to which this error is related topublic List<ODataErrorDetail> getDetails()
public ODataError setDetails(List<ODataErrorDetail> details)
public Map<String,String> getInnerError()
public ODataError setInnerError(Map<String,String> innerError)
public ODataError setAdditionalProperties(Map<String,Object> additionalProperties)
additionalProperties - Copyright © 2013–2023 The Apache Software Foundation. All rights reserved.