Class BatchJobSchedulingError

java.lang.Object
com.azure.compute.batch.models.BatchJobSchedulingError
All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchJobSchedulingError>

public final class BatchJobSchedulingError extends Object implements com.azure.json.JsonSerializable<BatchJobSchedulingError>
An error encountered by the Batch service when scheduling a Job.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of BatchJobSchedulingError from the JsonReader.
    Get the category property: The category of the Job scheduling error.
    Get the code property: An identifier for the Job scheduling error.
    Get the details property: A list of additional error details related to the scheduling error.
    Get the message property: A message describing the Job scheduling error, intended to be suitable for display in a user interface.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • getCategory

      public ErrorCategory 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.
    • 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.
    • getDetails

      public List<NameValuePair> getDetails()
      Get the details property: A list of additional error details related to the scheduling error.
      Returns:
      the details value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BatchJobSchedulingError>
      Throws:
      IOException
    • fromJson

      public static BatchJobSchedulingError fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the BatchJobSchedulingError.