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.

Constructor Summary

Constructor Description
ErrorEntity()

Creates an instance of ErrorEntity class.

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.

ErrorEntity withCode(String code)

Set the code property: Basic error code.

ErrorEntity withDetails(List<ErrorEntity> details)

Set the details property: Error Details.

ErrorEntity withExtendedCode(String extendedCode)

Set the extendedCode property: Type of error.

ErrorEntity withInnerErrors(List<ErrorEntity> innerErrors)

Set the innerErrors property: Inner errors.

ErrorEntity withMessage(String message)

Set the message property: Any details of the error.

ErrorEntity withMessageTemplate(String messageTemplate)

Set the messageTemplate property: Message template.

ErrorEntity withParameters(List<String> parameters)

Set the parameters property: Parameters for the template.

ErrorEntity withTarget(String target)

Set the target property: The error target.

Methods inherited from java.lang.Object

Constructor Details

ErrorEntity

public ErrorEntity()

Creates an instance of ErrorEntity class.

Method Details

code

public String code()

Get the code property: Basic error code.

Returns:

the code value.

details

public List 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 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 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.

withCode

public ErrorEntity withCode(String code)

Set the code property: Basic error code.

Parameters:

code - the code value to set.

Returns:

the ErrorEntity object itself.

withDetails

public ErrorEntity withDetails(List details)

Set the details property: Error Details.

Parameters:

details - the details value to set.

Returns:

the ErrorEntity object itself.

withExtendedCode

public ErrorEntity withExtendedCode(String extendedCode)

Set the extendedCode property: Type of error.

Parameters:

extendedCode - the extendedCode value to set.

Returns:

the ErrorEntity object itself.

withInnerErrors

public ErrorEntity withInnerErrors(List innerErrors)

Set the innerErrors property: Inner errors.

Parameters:

innerErrors - the innerErrors value to set.

Returns:

the ErrorEntity object itself.

withMessage

public ErrorEntity withMessage(String message)

Set the message property: Any details of the error.

Parameters:

message - the message value to set.

Returns:

the ErrorEntity object itself.

withMessageTemplate

public ErrorEntity withMessageTemplate(String messageTemplate)

Set the messageTemplate property: Message template.

Parameters:

messageTemplate - the messageTemplate value to set.

Returns:

the ErrorEntity object itself.

withParameters

public ErrorEntity withParameters(List parameters)

Set the parameters property: Parameters for the template.

Parameters:

parameters - the parameters value to set.

Returns:

the ErrorEntity object itself.

withTarget

public ErrorEntity withTarget(String target)

Set the target property: The error target.

Parameters:

target - the target value to set.

Returns:

the ErrorEntity object itself.

Applies to