public class ErrorResponse
extends java.lang.Object
Encapsulates an OData error response.
Constructor and Description |
---|
ErrorResponse() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode()
A service-defined code for the error.
|
ErrorResponseList |
getDetails()
Optional additional details about the error.
|
java.lang.String |
getInnerDetails()
(nullable) Optional service specific debugging information that might assist a service implementer in determining the cause of an error.
|
java.lang.String |
getLanguage()
(nullable) Optionally indicates an RFC 5646 language code for the error message.
|
java.lang.String |
getMessage()
A human-readable, language-dependent message describing the error.
|
java.lang.String |
getTarget()
(nullable) Optionally indicates the target of the error.
|
void |
setCode(java.lang.String value)
A service-defined code for the error.
|
void |
setDetails(ErrorResponseList value)
Optional additional details about the error.
|
void |
setInnerDetails(java.lang.String value)
Optional service specific debugging information that might assist a service implementer in determining the cause of an error.
|
void |
setLanguage(java.lang.String value)
Optionally indicates an RFC 5646 language code for the error message.
|
void |
setMessage(java.lang.String value)
A human-readable, language-dependent message describing the error.
|
void |
setTarget(java.lang.String value)
Optionally indicates the target of the error.
|
public java.lang.String getCode()
A service-defined code for the error.
public ErrorResponseList getDetails()
Optional additional details about the error.
public java.lang.String getInnerDetails()
(nullable) Optional service specific debugging information that might assist a service implementer in determining the cause of an error. This would not usually be returned by a production service. The service might need to be configured in a test or debug mode before it will return inner error information.
public java.lang.String getLanguage()
(nullable) Optionally indicates an RFC 5646 language code for the error message.
public java.lang.String getMessage()
A human-readable, language-dependent message describing the error.
public java.lang.String getTarget()
(nullable) Optionally indicates the target of the error.
public void setCode(java.lang.String value)
A service-defined code for the error.
public void setDetails(ErrorResponseList value)
Optional additional details about the error.
public void setInnerDetails(java.lang.String value)
Optional service specific debugging information that might assist a service implementer in determining the cause of an error. This would not usually be returned by a production service. The service might need to be configured in a test or debug mode before it will return inner error information.
public void setLanguage(java.lang.String value)
Optionally indicates an RFC 5646 language code for the error message.
public void setMessage(java.lang.String value)
A human-readable, language-dependent message describing the error.
public void setTarget(java.lang.String value)
Optionally indicates the target of the error.