Package com.azure.compute.batch.models
Class BatchNodeError
java.lang.Object
com.azure.compute.batch.models.BatchNodeError
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchNodeError>
public final class BatchNodeError
extends Object
implements com.azure.json.JsonSerializable<BatchNodeError>
An error encountered by a Compute Node.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BatchNodeError
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchNodeError from the JsonReader.getCode()
Get the code property: An identifier for the Compute Node error.Get the errorDetails property: The list of additional error details related to the Compute Node error.Get the message property: A message describing the Compute Node 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
-
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.
-
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.
-
getErrorDetails
Get the errorDetails property: The list of additional error details related to the Compute Node error.- Returns:
- the errorDetails value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BatchNodeError>
- Throws:
IOException
-
fromJson
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.
-