ResourceErrorResponse Class

  • java.lang.Object
    • com.microsoft.azure.management.resources.ResourceErrorResponse

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.

ResourceErrorResponse withErrorCode(String errorCode)

Set error code.

ResourceErrorResponse withErrorMessage(String errorMessage)

Set error message indicating why the operation failed.

ResourceErrorResponse withHttpStatus(String httpStatus)

Set http status code.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ResourceErrorResponse

public ResourceErrorResponse()

Method Details

errorCode

public String errorCode()

Get error code.

Returns:

the errorCode value

errorMessage

public String errorMessage()

Get error message indicating why the operation failed.

Returns:

the errorMessage value

httpStatus

public String httpStatus()

Get http status code.

Returns:

the httpStatus value

withErrorCode

public ResourceErrorResponse withErrorCode(String errorCode)

Set error code.

Parameters:

errorCode - the errorCode value to set

Returns:

the ErrorResponse object itself.

withErrorMessage

public ResourceErrorResponse withErrorMessage(String errorMessage)

Set error message indicating why the operation failed.

Parameters:

errorMessage - the errorMessage value to set

Returns:

the ErrorResponse object itself.

withHttpStatus

public ResourceErrorResponse withHttpStatus(String httpStatus)

Set http status code.

Parameters:

httpStatus - the httpStatus value to set

Returns:

the ErrorResponse object itself.

Applies to