Class ErrorResponse
java.lang.Object
com.microsoft.azure.management.storage.ErrorResponse
An error response from the storage resource provider.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncode()
Get an identifier for the error.message()
Get a message describing the error, intended to be suitable for display in a user interface.Set an identifier for the error.withMessage
(String message) Set a message describing the error, intended to be suitable for display in a user interface.
-
Constructor Details
-
ErrorResponse
public ErrorResponse()
-
-
Method Details
-
code
Get an identifier for the error. Codes are invariant and are intended to be consumed programmatically.- Returns:
- the code value
-
withCode
Set an identifier for the error. Codes are invariant and are intended to be consumed programmatically.- Parameters:
code
- the code value to set- Returns:
- the ErrorResponse object itself.
-
message
Get a message describing the error, intended to be suitable for display in a user interface.- Returns:
- the message value
-
withMessage
Set a message describing the error, intended to be suitable for display in a user interface.- Parameters:
message
- the message value to set- Returns:
- the ErrorResponse object itself.
-