CloudErrorBody Class
- java.
lang. Object - com.
microsoft. azure. management. storagecache. v2020_03_01.CloudErrorBody
- com.
public class CloudErrorBody
An error response.
Constructor | Description | |
---|---|---|
Cloud |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
code()
Get an identifier for the error. |
java.util.List<Cloud |
details()
Get a list of additional details about the error. |
java.lang.String |
message()
Get a message describing the error, intended to be suitable for display in a user interface. |
java.lang.String |
target()
Get the target of the particular error. |
Cloud |
with Set an identifier for the error. |
Cloud |
with Set a list of additional details about the error. |
Cloud |
with Set a message describing the error, intended to be suitable for display in a user interface. |
Cloud |
with Set the target of the particular error. |
CloudErrorBody
public CloudErrorBody()
code
public String code()
Get an identifier for the error. Codes are invariant and are intended to be consumed programmatically.
Returns:
details
public List
Get a list of additional details about the error.
Returns:
message
public String message()
Get a message describing the error, intended to be suitable for display in a user interface.
Returns:
target
public String target()
Get the target of the particular error. For example, the name of the property in error.
Returns:
withCode
public CloudErrorBody withCode(String code)
Set an identifier for the error. Codes are invariant and are intended to be consumed programmatically.
Parameters:
Returns:
withDetails
public CloudErrorBody withDetails(List
Set a list of additional details about the error.
Parameters:
Returns:
withMessage
public CloudErrorBody withMessage(String message)
Set a message describing the error, intended to be suitable for display in a user interface.
Parameters:
Returns:
withTarget
public CloudErrorBody withTarget(String target)
Set the target of the particular error. For example, the name of the property in error.
Parameters:
Returns: