Class ResourceErrorResponse
java.lang.Object
com.microsoft.azure.management.resources.ResourceErrorResponse
Error response indicates ARM is not able to process the incoming request.
The reason is provided in the error message.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet error code.Get error message indicating why the operation failed.Get http status code.withErrorCode
(String errorCode) Set error code.withErrorMessage
(String errorMessage) Set error message indicating why the operation failed.withHttpStatus
(String httpStatus) Set http status code.
-
Constructor Details
-
ResourceErrorResponse
public ResourceErrorResponse()
-
-
Method Details
-
httpStatus
Get http status code.- Returns:
- the httpStatus value
-
withHttpStatus
Set http status code.- Parameters:
httpStatus
- the httpStatus value to set- Returns:
- the ErrorResponse object itself.
-
errorCode
Get error code.- Returns:
- the errorCode value
-
withErrorCode
Set error code.- Parameters:
errorCode
- the errorCode value to set- Returns:
- the ErrorResponse object itself.
-
errorMessage
Get error message indicating why the operation failed.- Returns:
- the errorMessage value
-
withErrorMessage
Set error message indicating why the operation failed.- Parameters:
errorMessage
- the errorMessage value to set- Returns:
- the ErrorResponse object itself.
-