Condividi tramite


ErrorEntity Class

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

Implements

public final class ErrorEntity
implements JsonSerializable<ErrorEntity>

Body of the error response returned from the API.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: Basic error code.

List<ErrorEntity> details()

Get the details property: Error Details.

String extendedCode()

Get the extendedCode property: Type of error.

static ErrorEntity fromJson(JsonReader jsonReader)

Reads an instance of ErrorEntity from the JsonReader.

List<ErrorEntity> innerErrors()

Get the innerErrors property: Inner errors.

String message()

Get the message property: Any details of the error.

String messageTemplate()

Get the messageTemplate property: Message template.

List<String> parameters()

Get the parameters property: Parameters for the template.

String target()

Get the target property: The error target.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

code

public String code()

Get the code property: Basic error code.

Returns:

the code value.

details

public List<ErrorEntity> details()

Get the details property: Error Details.

Returns:

the details value.

extendedCode

public String extendedCode()

Get the extendedCode property: Type of error.

Returns:

the extendedCode value.

fromJson

public static ErrorEntity fromJson(JsonReader jsonReader)

Reads an instance of ErrorEntity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

innerErrors

public List<ErrorEntity> innerErrors()

Get the innerErrors property: Inner errors.

Returns:

the innerErrors value.

message

public String message()

Get the message property: Any details of the error.

Returns:

the message value.

messageTemplate

public String messageTemplate()

Get the messageTemplate property: Message template.

Returns:

the messageTemplate value.

parameters

public List<String> parameters()

Get the parameters property: Parameters for the template.

Returns:

the parameters value.

target

public String target()

Get the target property: The error target.

Returns:

the target value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to