次の方法で共有


ErrorDefinition Class

public final class ErrorDefinition
extends ManagementError

Error response.

Constructor Summary

Constructor Description
ErrorDefinition()

Creates an instance of ErrorDefinition class.

Method Summary

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

Reads an instance of ErrorDefinition 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.

Object getInnererror()

Get the innererror property: Internal error details.

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

ErrorDefinition

public ErrorDefinition()

Creates an instance of ErrorDefinition class.

Method Details

fromJson

public static ErrorDefinition fromJson(JsonReader jsonReader)

Reads an instance of ErrorDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getAdditionalInfo

public List<AdditionalInfo> getAdditionalInfo()

Get the additionalInfo property: Additional info for the error.

Overrides:

ErrorDefinition.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:

ErrorDefinition.getCode()

Returns:

the code value.

getDetails

public List<ManagementError> getDetails()

Get the details property: Details for the error.

Overrides:

ErrorDefinition.getDetails()

Returns:

the details value.

getInnererror

public Object getInnererror()

Get the innererror property: Internal error details.

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:

ErrorDefinition.getMessage()

Returns:

the message value.

getTarget

public String getTarget()

Get the target property: The target of the error.

Overrides:

ErrorDefinition.getTarget()

Returns:

the target value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ErrorDefinition.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to