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()
Return a service-defined code for the error.
|
ErrorResponseList |
getDetails()
Return optional additional details about the error.
|
java.lang.String |
getInnerDetails()
Return (nullable) Optional service specific debugging information that might assist a service implementer in determining the cause of an error.
|
java.lang.String |
getLanguage()
Return (nullable) Optionally indicates an RFC 5646 language code for the error message.
|
java.lang.String |
getMessage()
Return a human-readable, language-dependent message describing the error.
|
java.lang.String |
getTarget()
Return (nullable) Optionally indicates the target of the error.
|
void |
setCode(java.lang.String value)
Set a service-defined code for the error.
|
void |
setDetails(ErrorResponseList value)
Set optional additional details about the error.
|
void |
setInnerDetails(java.lang.String value)
Set optional service specific debugging information that might assist a service implementer in determining the cause of an error.
|
void |
setLanguage(java.lang.String value)
Set optionally indicates an RFC 5646 language code for the error message.
|
void |
setMessage(java.lang.String value)
Set a human-readable, language-dependent message describing the error.
|
void |
setTarget(java.lang.String value)
Set optionally indicates the target of the error.
|
public java.lang.String getCode()
Return a service-defined code for the error.
public ErrorResponseList getDetails()
Return optional additional details about the error.
public java.lang.String getInnerDetails()
Return (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()
Return (nullable) Optionally indicates an RFC 5646 language code for the error message.
public java.lang.String getMessage()
Return a human-readable, language-dependent message describing the error.
public java.lang.String getTarget()
Return (nullable) Optionally indicates the target of the error.
public void setCode(java.lang.String value)
Set a service-defined code for the error.
value
- A service-defined code for the error.public void setDetails(ErrorResponseList value)
Set optional additional details about the error.
value
- Optional additional details about the error.public void setInnerDetails(java.lang.String value)
Set 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.
value
- Optional service specific debugging information that might assist a service implementer in determining the cause of an error.public void setLanguage(java.lang.String value)
Set optionally indicates an RFC 5646 language code for the error message.
value
- Optionally indicates an RFC 5646 language code for the error message.public void setMessage(java.lang.String value)
Set a human-readable, language-dependent message describing the error.
value
- A human-readable, language-dependent message describing the error.public void setTarget(java.lang.String value)
Set optionally indicates the target of the error.
value
- Optionally indicates the target of the error.