Share via


BatchNodeError Class

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

Implements

public final class BatchNodeError
implements JsonSerializable<BatchNodeError>

An error encountered by a Compute Node.

Method Summary

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

Reads an instance of BatchNodeError from the JsonReader.

String getCode()

Get the code property: An identifier for the Compute Node error.

List<NameValuePair> getErrorDetails()

Get the errorDetails property: The list of additional error details related to the Compute Node error.

String getMessage()

Get the message property: A message describing the Compute Node error, intended to be suitable for display in a user interface.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchNodeError fromJson(JsonReader jsonReader)

Reads an instance of BatchNodeError from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getCode

public String getCode()

Get the code property: An identifier for the Compute Node error. Codes are invariant and are intended to be consumed programmatically.

Returns:

the code value.

getErrorDetails

public List<NameValuePair> getErrorDetails()

Get the errorDetails property: The list of additional error details related to the Compute Node error.

Returns:

the errorDetails value.

getMessage

public String getMessage()

Get the message property: A message describing the Compute Node error, intended to be suitable for display in a user interface.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to