Condividi tramite


ErrorInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.ErrorInfo

Implements

public class ErrorInfo
implements JsonSerializable<ErrorInfo>

The error info.

Constructor Summary

Modifier Constructor Description
protected ErrorInfo()

Creates an instance of ErrorInfo class.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: The error code.

static ErrorInfo fromJson(JsonReader jsonReader)

Reads an instance of ErrorInfo from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

ErrorInfo

protected ErrorInfo()

Creates an instance of ErrorInfo class.

Method Details

code

public String code()

Get the code property: The error code.

Returns:

the code value.

fromJson

public static ErrorInfo fromJson(JsonReader jsonReader)

Reads an instance of ErrorInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ErrorInfo 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to