Condividi tramite


AzureResourceErrorInfo Class

public final class AzureResourceErrorInfo
extends ErrorInfo

The azure resource error info.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: The error code.

List<AzureResourceErrorInfo> details()

Get the details property: The error details.

static AzureResourceErrorInfo fromJson(JsonReader jsonReader)

Reads an instance of AzureResourceErrorInfo from the JsonReader.

String message()

Get the message property: The error message.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from ErrorInfo

Methods inherited from java.lang.Object

Method Details

code

public String code()

Get the code property: The error code.

Overrides:

AzureResourceErrorInfo.code()

Returns:

the code value.

details

public List<AzureResourceErrorInfo> details()

Get the details property: The error details.

Returns:

the details value.

fromJson

public static AzureResourceErrorInfo fromJson(JsonReader jsonReader)

Reads an instance of AzureResourceErrorInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AzureResourceErrorInfo if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

message

public String message()

Get the message property: The error message.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AzureResourceErrorInfo.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

AzureResourceErrorInfo.validate()

Applies to