Error Class

public final class Error
extends ManagementError

Common error representation.

Method Summary

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

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

String getInnerError()

Get the innerError property: Inner error message.

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

Method Details

fromJson

public static Error fromJson(JsonReader jsonReader)

Reads an instance of Error from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getAdditionalInfo

public List<AdditionalInfo> getAdditionalInfo()

Get the additionalInfo property: Additional info for the error.

Overrides:

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

Error.getCode()

Returns:

the code value.

getDetails

public List<ManagementError> getDetails()

Get the details property: Details for the error.

Overrides:

Error.getDetails()

Returns:

the details value.

getInnerError

public String getInnerError()

Get the innerError property: Inner error message.

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:

Error.getMessage()

Returns:

the message value.

getTarget

public String getTarget()

Get the target property: The target of the error.

Overrides:

Error.getTarget()

Returns:

the target value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

Error.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to