Package com.google.genai.types
Class JobError
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.JobError
Job error.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JobError.Builder
builder()
Instantiates a builder for JobError.code()
The status code.details()
A list of messages that carry the error details.static JobError
Deserializes a JSON string to a JobError object.message()
A developer-facing error message, which should be in English.abstract JobError.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
JobError
public JobError()
-
-
Method Details
-
details
A list of messages that carry the error details. There is a common set of message types for APIs to use. -
code
The status code. -
message
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the `details` field. -
builder
Instantiates a builder for JobError. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a JobError object.
-