ErrorResponse Class
- java.
lang. Object - com.
microsoft. azure. management. apimanagement. v2019_01_01.ErrorResponse
- com.
public class ErrorResponse
Error Response.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| ErrorResponse() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
code()
Get service-defined error code. |
|
java.util.List<Error |
details()
Get the list of invalid fields send in request, in case of validation error. |
| java.lang.String |
message()
Get human-readable representation of the error. |
|
Error |
withCode(String code)
Set service-defined error code. |
|
Error |
withDetails(List<ErrorFieldContract> details)
Set the list of invalid fields send in request, in case of validation error. |
|
Error |
withMessage(String message)
Set human-readable representation of the error. |
Methods inherited from java.lang.Object
Constructor Details
ErrorResponse
public ErrorResponse()
Method Details
code
public String code()
Get service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response.
Returns:
details
public List<ErrorFieldContract> details()
Get the list of invalid fields send in request, in case of validation error.
Returns:
message
public String message()
Get human-readable representation of the error.
Returns:
withCode
public ErrorResponse withCode(String code)
Set service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response.
Parameters:
Returns:
withDetails
public ErrorResponse withDetails(List<ErrorFieldContract> details)
Set the list of invalid fields send in request, in case of validation error.
Parameters:
Returns:
withMessage
public ErrorResponse withMessage(String message)
Set human-readable representation of the error.
Parameters:
Returns: