Enum Class LlmErrorBody.Kind

java.lang.Object
java.lang.Enum<LlmErrorBody.Kind>
org.mockserver.llm.LlmErrorBody.Kind
All Implemented Interfaces:
Serializable, Comparable<LlmErrorBody.Kind>, Constable
Enclosing class:
LlmErrorBody

public static enum LlmErrorBody.Kind extends Enum<LlmErrorBody.Kind>
The kind of provider error to synthesise. The kind selects both the default HTTP status and the provider-specific body shape.
  • Enum Constant Details

    • OVERLOAD

      public static final LlmErrorBody.Kind OVERLOAD
      Provider is over capacity (e.g. Anthropic 529 overloaded_error, OpenAI 503 server_error).
    • RATE_LIMIT

      public static final LlmErrorBody.Kind RATE_LIMIT
      Per-account rate / quota limit hit (e.g. 429 rate_limit_exceeded).
    • SERVER_ERROR

      public static final LlmErrorBody.Kind SERVER_ERROR
      Generic upstream server error (5xx).
  • Method Details

    • values

      public static LlmErrorBody.Kind[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LlmErrorBody.Kind valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null