Class ErrorResponse
java.lang.Object
com.azure.resourcemanager.managedapplications.models.ErrorResponse
Error response indicates managed application is not able to process the incoming request. The reason is provided in
the error message.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the errorCode property: Error code.Get the errorMessage property: Error message indicating why the operation failed.Get the httpStatus property: Http status code.void
validate()
Validates the instance.withErrorCode
(String errorCode) Set the errorCode property: Error code.withErrorMessage
(String errorMessage) Set the errorMessage property: Error message indicating why the operation failed.withHttpStatus
(String httpStatus) Set the httpStatus property: Http status code.
-
Constructor Details
-
ErrorResponse
public ErrorResponse()Creates an instance of ErrorResponse class.
-
-
Method Details
-
httpStatus
Get the httpStatus property: Http status code.- Returns:
- the httpStatus value.
-
withHttpStatus
Set the httpStatus property: Http status code.- Parameters:
httpStatus
- the httpStatus value to set.- Returns:
- the ErrorResponse object itself.
-
errorCode
Get the errorCode property: Error code.- Returns:
- the errorCode value.
-
withErrorCode
Set the errorCode property: Error code.- Parameters:
errorCode
- the errorCode value to set.- Returns:
- the ErrorResponse object itself.
-
errorMessage
Get the errorMessage property: Error message indicating why the operation failed.- Returns:
- the errorMessage value.
-
withErrorMessage
Set the errorMessage property: Error message indicating why the operation failed.- Parameters:
errorMessage
- the errorMessage value to set.- Returns:
- the ErrorResponse object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-