Class ErrorResponse
java.lang.Object
com.microsoft.azure.management.monitor.ErrorResponse
Describes the format of Error response.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncode()
Get error code.message()
Get error message indicating why the operation failed.Set error code.withMessage
(String message) Set error message indicating why the operation failed.
-
Constructor Details
-
ErrorResponse
public ErrorResponse()
-
-
Method Details
-
code
Get error code.- Returns:
- the code value
-
withCode
Set error code.- Parameters:
code
- the code value to set- Returns:
- the ErrorResponse object itself.
-
message
Get error message indicating why the operation failed.- Returns:
- the message value
-
withMessage
Set error message indicating why the operation failed.- Parameters:
message
- the message value to set- Returns:
- the ErrorResponse object itself.
-