ResourceErrorResponse Class
- java.
lang. Object - com.
microsoft. azure. management. resources. ResourceErrorResponse
- com.
public class ResourceErrorResponse
Error response indicates ARM is not able to process the incoming request. The reason is provided in the error message.
Constructor Summary
Constructor | Description | |
---|---|---|
ResourceErrorResponse() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
errorCode()
Get error code. |
java.lang.String |
errorMessage()
Get error message indicating why the operation failed. |
java.lang.String |
httpStatus()
Get http status code. |
Resource |
withErrorCode(String errorCode)
Set error code. |
Resource |
withErrorMessage(String errorMessage)
Set error message indicating why the operation failed. |
Resource |
withHttpStatus(String httpStatus)
Set http status code. |
Methods inherited from java.lang.Object
Constructor Details
ResourceErrorResponse
public ResourceErrorResponse()
Method Details
errorCode
public String errorCode()
Get error code.
Returns:
errorMessage
public String errorMessage()
Get error message indicating why the operation failed.
Returns:
httpStatus
public String httpStatus()
Get http status code.
Returns:
withErrorCode
public ResourceErrorResponse withErrorCode(String errorCode)
Set error code.
Parameters:
Returns:
withErrorMessage
public ResourceErrorResponse withErrorMessage(String errorMessage)
Set error message indicating why the operation failed.
Parameters:
Returns:
withHttpStatus
public ResourceErrorResponse withHttpStatus(String httpStatus)
Set http status code.
Parameters:
Returns: