CloudError Class
- java.
lang. Object - com.
azure. resourcemanager. databox. models. CloudError
- com.
Implements
public final class CloudError
implements JsonSerializable<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. |
|
static
Cloud |
fromJson(JsonReader jsonReader)
Reads an instance of Cloud |
| 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. |
|
Json |
toJson(JsonWriter jsonWriter) |
| 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<AdditionalErrorInfo> additionalInfo()
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<CloudError> details()
Get the details property: Gets or sets details for the error.
Returns:
fromJson
public static CloudError fromJson(JsonReader jsonReader)
Reads an instance of CloudError from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
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: