Share via


BatchErrorMessage Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchErrorMessage

Implements

public final class BatchErrorMessage
implements JsonSerializable<BatchErrorMessage>

An error message received in an Azure Batch error response.

Method Summary

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

Reads an instance of BatchErrorMessage from the JsonReader.

String getLang()

Get the lang property: The language code of the error message.

String getValue()

Get the value property: The text of the message.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchErrorMessage fromJson(JsonReader jsonReader)

Reads an instance of BatchErrorMessage from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getLang

public String getLang()

Get the lang property: The language code of the error message.

Returns:

the lang value.

getValue

public String getValue()

Get the value property: The text of the message.

Returns:

the value value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to