public class ODataError extends Object
Constructor and Description |
---|
ODataError() |
Modifier and Type | Method and Description |
---|---|
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 |
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)
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.