public class ClientServerError extends ODataError
Constructor and Description |
---|
ClientServerError() |
Modifier and Type | Method and Description |
---|---|
Exception |
getException()
Gets the exception.
|
Locale |
getLocale()
Gets the locale.
|
int |
getStatusCode()
Gets the status code.
|
ClientServerError |
setCode(String code)
The value for the code name/value pair is a language-independent string.
|
ClientServerError |
setDetails(List<ODataErrorDetail> details)
Sets error details.
|
ClientServerError |
setException(Exception exception)
Sets the exception.
|
ClientServerError |
setInnerError(Map<String,String> innerError)
Sets server defined key-value pairs for debug environment only.
|
ClientServerError |
setLocale(Locale locale)
Sets the locale.
|
ClientServerError |
setMessage(String message)
The value for the message name/value pair MUST be a human-readable,
language-dependent representation of the error.
|
ClientServerError |
setStatusCode(int statusCode)
Sets the status code.
|
ClientServerError |
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 ClientServerError setLocale(Locale locale)
public Exception getException()
public ClientServerError setException(Exception exception)
public int getStatusCode()
public ClientServerError setStatusCode(int statusCode)
statusCode
- the status code which this error results inpublic ClientServerError setCode(String code)
setCode
in class ODataError
public ClientServerError setMessage(String message)
setMessage
in class ODataError
public ClientServerError setTarget(String target)
setTarget
in class ODataError
public ClientServerError setDetails(List<ODataErrorDetail> details)
setDetails
in class ODataError
public ClientServerError setInnerError(Map<String,String> innerError)
setInnerError
in class ODataError
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.