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:
Applies to
Azure SDK for Java
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기