Class InvalidRequestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.langchain4j.exception.LangChain4jException
dev.langchain4j.exception.NonRetriableException
dev.langchain4j.exception.InvalidRequestException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ContentFilteredException
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 Summary
ConstructorsConstructorDescriptionInvalidRequestException(String message) InvalidRequestException(String message, Throwable cause) InvalidRequestException(Throwable cause) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidRequestException
-
InvalidRequestException
-
InvalidRequestException
-