Class InvalidRequestException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ContentFilteredException

public class InvalidRequestException extends NonRetriableException
Thrown when the model provider rejects a request because the request itself is malformed or violates the provider's constraints (HTTP 4xx, excluding 401, 403, 404, 408, and 429).

This is a NonRetriableException: the same request will be rejected again without modification. The caller must correct the request (e.g. reduce the prompt length, remove unsupported parameters) before retrying.

See Also:
  • Constructor Details

    • InvalidRequestException

      public InvalidRequestException(String message)
    • InvalidRequestException

      public InvalidRequestException(Throwable cause)
    • InvalidRequestException

      public InvalidRequestException(String message, Throwable cause)