Class JobError

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public abstract class JobError.Builder

      Builder for JobError.

    • Constructor Summary

      Constructors 
      Constructor Description
      JobError()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.Builder builder() Instantiates a builder for JobError.
      abstract JobError.Builder toBuilder() Creates a builder with the same values as this instance.
      static JobError fromJson(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
    • Constructor Detail

      • JobError

        JobError()