Package com.azure.ai.openai.models
Class BatchErrorDatum
java.lang.Object
com.azure.ai.openai.models.BatchErrorDatum
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchErrorDatum>
public final class BatchErrorDatum
extends Object
implements com.azure.json.JsonSerializable<BatchErrorDatum>
A Datum containing information about a Batch Error.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BatchErrorDatumfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BatchErrorDatum from the JsonReader.getCode()Get the code property: An error code identifying the error type.getLine()Get the line property: The line number of the input file where the error occurred, if applicable.Get the message property: A human-readable message providing more details about the error.getParam()Get the param property: The name of the parameter that caused the error, if applicable.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getCode
Get the code property: An error code identifying the error type.- Returns:
- the code value.
-
getMessage
Get the message property: A human-readable message providing more details about the error.- Returns:
- the message value.
-
getParam
Get the param property: The name of the parameter that caused the error, if applicable.- Returns:
- the param value.
-
getLine
Get the line property: The line number of the input file where the error occurred, if applicable.- Returns:
- the line value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BatchErrorDatum>- Throws:
IOException
-
fromJson
Reads an instance of BatchErrorDatum from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BatchErrorDatum 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 BatchErrorDatum.
-