BatchError Class
- java.
lang. Object - com.
azure. compute. batch. models. BatchError
- com.
Implements
public final class BatchError
implements JsonSerializable<BatchError>
An error response received from the Azure Batch service.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Batch |
fromException(HttpResponseException err)
Reads an instance of Batch |
|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
| String |
getCode()
Get the code property: An identifier for the error. |
|
Batch |
getMessage()
Get the message property: A message describing the error, intended to be suitable for display in a user interface. |
|
List<Batch |
getValues()
Get the values property: A collection of key-value pairs containing additional details about the error. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromException
public static BatchError fromException(HttpResponseException err)
Reads an instance of BatchError from an HttpResponseException.
Parameters:
Returns:
fromJson
public static BatchError fromJson(JsonReader jsonReader)
Reads an instance of BatchError from the JsonReader.
Parameters:
Returns:
Throws:
getCode
public String getCode()
Get the code property: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
Returns:
getMessage
public BatchErrorMessage getMessage()
Get the message property: A message describing the error, intended to be suitable for display in a user interface.
Returns:
getValues
public List<BatchErrorDetail> getValues()
Get the values property: A collection of key-value pairs containing additional details about the error.
Returns: