Package com.azure.compute.batch.models
Class BatchTaskFailureInfo
java.lang.Object
com.azure.compute.batch.models.BatchTaskFailureInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchTaskFailureInfo>
public final class BatchTaskFailureInfo
extends Object
implements com.azure.json.JsonSerializable<BatchTaskFailureInfo>
Information about a Task failure.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BatchTaskFailureInfo
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchTaskFailureInfo from the JsonReader.Get the category property: The category of the Task error.getCode()
Get the code property: An identifier for the Task error.Get the details property: A list of additional details related to the error.Get the message property: A message describing the Task 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
Get the category property: The category of the Task error.- Returns:
- the category value.
-
getCode
Get the code property: An identifier for the Task error. Codes are invariant and are intended to be consumed programmatically.- Returns:
- the code value.
-
getMessage
Get the message property: A message describing the Task error, intended to be suitable for display in a user interface.- Returns:
- the message value.
-
getDetails
Get the details property: A list of additional details related to the error.- Returns:
- the details value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BatchTaskFailureInfo>
- Throws:
IOException
-
fromJson
public static BatchTaskFailureInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BatchTaskFailureInfo from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of BatchTaskFailureInfo 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 BatchTaskFailureInfo.
-