CloudError Class
- java.
lang. Object - com.
azure. resourcemanager. databox. models. CloudError
- com.
public final class CloudError
Provides additional information about an http error response.
Constructor Summary
Constructor | Description |
---|---|
CloudError() |
Creates an instance of Cloud |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Additional |
additionalInfo()
Get the additional |
String |
code()
Get the code property: Error code. |
List<Cloud |
details()
Get the details property: Gets or sets details for the error. |
String |
message()
Get the message property: The error message parsed from the body of the http error response. |
String |
target()
Get the target property: Gets or sets the target of the error. |
void |
validate()
Validates the instance. |
Cloud |
withCode(String code)
Set the code property: Error code. |
Cloud |
withMessage(String message)
Set the message property: The error message parsed from the body of the http error response. |
Cloud |
withTarget(String target)
Set the target property: Gets or sets the target of the error. |
Methods inherited from java.lang.Object
Constructor Details
CloudError
public CloudError()
Creates an instance of CloudError class.
Method Details
additionalInfo
public List
Get the additionalInfo property: Gets or sets additional error info.
Returns:
code
public String code()
Get the code property: Error code.
Returns:
details
public List
Get the details property: Gets or sets details for the error.
Returns:
message
public String message()
Get the message property: The error message parsed from the body of the http error response.
Returns:
target
public String target()
Get the target property: Gets or sets the target of the error.
Returns:
validate
public void validate()
Validates the instance.
withCode
public CloudError withCode(String code)
Set the code property: Error code.
Parameters:
Returns:
withMessage
public CloudError withMessage(String message)
Set the message property: The error message parsed from the body of the http error response.
Parameters:
Returns:
withTarget
public CloudError withTarget(String target)
Set the target property: Gets or sets the target of the error.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for