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 |
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).
|
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)
statusCode
- the status code which this error results inpublic ODataServerError setCode(String code)
setCode
in class ODataError
public ODataServerError setMessage(String message)
setMessage
in class ODataError
public ODataServerError setTarget(String target)
setTarget
in class ODataError
public ODataServerError setDetails(List<ODataErrorDetail> details)
setDetails
in class ODataError
public ODataServerError setInnerError(Map<String,String> innerError)
setInnerError
in class ODataError
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.