public class ODataServerError extends ODataError
Constructor and Description |
---|
ODataServerError() |
Modifier and Type | Method and Description |
---|---|
Exception |
getException() |
Locale |
getLocale() |
int |
getStatusCode() |
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) |
ODataServerError |
setInnerError(Map<String,String> innerError)
Sets server defined key-value pairs for debug environment only.
|
ODataServerError |
setLocale(Locale 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) |
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).
|
getCode, getDetails, getInnerError, getMessage, getTarget
public Locale getLocale()
public ODataServerError setLocale(Locale locale)
public Exception getException()
public ODataServerError setException(Exception exception)
public int getStatusCode()
public ODataServerError setStatusCode(int statusCode)
public ODataServerError setCode(String code)
setCode
in class ODataError
code
- public ODataServerError setMessage(String message)
setMessage
in class ODataError
message
- public ODataServerError setTarget(String target)
setTarget
in class ODataError
target
- public ODataServerError setDetails(List<ODataErrorDetail> details)
setDetails
in class ODataError
public ODataServerError setInnerError(Map<String,String> innerError)
setInnerError
in class ODataError
Copyright © 2013–2014 The Apache Software Foundation. All rights reserved.