BatchErrorDatum Class
- java.
lang. Object - com.
azure. ai. openai. models. BatchErrorDatum
- com.
Implements
public final class BatchErrorDatum
implements JsonSerializable<BatchErrorDatum>
A Datum containing information about a Batch Error.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
String |
getCode()
Get the code property: An error code identifying the error type. |
Integer |
getLine()
Get the line property: The line number of the input file where the error occurred, if applicable. |
String |
getMessage()
Get the message property: A human-readable message providing more details about the error. |
String |
getParam()
Get the param property: The name of the parameter that caused the error, if applicable. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static BatchErrorDatum fromJson(JsonReader jsonReader)
Reads an instance of BatchErrorDatum from the JsonReader.
Parameters:
Returns:
Throws:
getCode
public String getCode()
Get the code property: An error code identifying the error type.
Returns:
getLine
public Integer getLine()
Get the line property: The line number of the input file where the error occurred, if applicable.
Returns:
getMessage
public String getMessage()
Get the message property: A human-readable message providing more details about the error.
Returns:
getParam
public String getParam()
Get the param property: The name of the parameter that caused the error, if applicable.
Returns:
toJson
Applies to
Azure SDK for Java