Package com.google.genai.types
Class JobError
-
- All Implemented Interfaces:
public abstract class JobError extends JsonSerializable
Job error.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classJobError.BuilderBuilder for JobError.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description JobError()
-
Method Summary
Modifier and Type Method Description abstract Optional<List<String>>details()A list of messages that carry the error details. abstract Optional<Integer>code()The status code. abstract Optional<String>message()A developer-facing error message, which should be in English. static JobError.Builderbuilder()Instantiates a builder for JobError. abstract JobError.BuildertoBuilder()Creates a builder with the same values as this instance. static JobErrorfromJson(String jsonString)Deserializes a JSON string to a JobError object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
details
abstract Optional<List<String>> details()
A list of messages that carry the error details. There is a common set of message types for APIs to use.
-
message
abstract Optional<String> 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
static JobError.Builder builder()
Instantiates a builder for JobError.
-
toBuilder
abstract JobError.Builder toBuilder()
Creates a builder with the same values as this instance.
-
-
-
-