你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

OdataErrorMain Class

public final class OdataErrorMain
extends ManagementError

The OdataErrorMain model.

Constructor Summary

Constructor Description
OdataErrorMain()

Creates an instance of OdataErrorMain class.

Method Summary

Modifier and Type Method and Description
static OdataErrorMain fromJson(JsonReader jsonReader)

Reads an instance of OdataErrorMain from the JsonReader.

List<AdditionalInfo> getAdditionalInfo()

Get the additionalInfo property: Additional info for the error.

String getCode()

Get the code property: The error code parsed from the body of the http error response.

List<ManagementError> getDetails()

Get the details property: Details for the error.

Map<String,Object> getInnererror()

Get the innererror property: The structure of this object is service-specific.

String getMessage()

Get the message property: The error message parsed from the body of the http error response.

String getTarget()

Get the target property: The target of the error.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from ManagementError

Methods inherited from java.lang.Object

Constructor Details

OdataErrorMain

public OdataErrorMain()

Creates an instance of OdataErrorMain class.

Method Details

fromJson

public static OdataErrorMain fromJson(JsonReader jsonReader)

Reads an instance of OdataErrorMain from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the OdataErrorMain.

getAdditionalInfo

public List getAdditionalInfo()

Get the additionalInfo property: Additional info for the error.

Overrides:

OdataErrorMain.getAdditionalInfo()

Returns:

the additionalInfo value.

getCode

public String getCode()

Get the code property: The error code parsed from the body of the http error response.

Overrides:

OdataErrorMain.getCode()

Returns:

the code value.

getDetails

public List getDetails()

Get the details property: Details for the error.

Overrides:

OdataErrorMain.getDetails()

Returns:

the details value.

getInnererror

public Map getInnererror()

Get the innererror property: The structure of this object is service-specific.

Returns:

the innererror value.

getMessage

public String getMessage()

Get the message property: The error message parsed from the body of the http error response.

Overrides:

OdataErrorMain.getMessage()

Returns:

the message value.

getTarget

public String getTarget()

Get the target property: The target of the error.

Overrides:

OdataErrorMain.getTarget()

Returns:

the target value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

OdataErrorMain.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to