Share via


BatchJobSchedulingError Class

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

Implements

public final class BatchJobSchedulingError
implements JsonSerializable<BatchJobSchedulingError>

An error encountered by the Batch service when scheduling a Job.

Method Summary

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

Reads an instance of BatchJobSchedulingError from the JsonReader.

BatchErrorSourceCategory getCategory()

Get the category property: The category of the Job scheduling error.

String getCode()

Get the code property: An identifier for the Job scheduling error.

List<NameValuePair> getDetails()

Get the details property: A list of additional error details related to the scheduling error.

String getMessage()

Get the message property: A message describing the Job scheduling 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 BatchJobSchedulingError fromJson(JsonReader jsonReader)

Reads an instance of BatchJobSchedulingError from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BatchJobSchedulingError if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getCategory

public BatchErrorSourceCategory getCategory()

Get the category property: The category of the Job scheduling error.

Returns:

the category value.

getCode

public String getCode()

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

Returns:

the code value.

getDetails

public List<NameValuePair> getDetails()

Get the details property: A list of additional error details related to the scheduling error.

Returns:

the details value.

getMessage

public String getMessage()

Get the message property: A message describing the Job scheduling 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