Package dev.langchain4j.exception
package dev.langchain4j.exception
-
Exception ClassesClassDescriptionThrown when a request is rejected because the supplied credentials are missing, invalid, or insufficient (HTTP 401 / 403).Exception thrown when the LLM provider refuses to process a request due to content filtering or violation of usage policies.Represents an HTTP-level error returned by a model provider.Thrown when the model provider returns a server-side error (HTTP 5xx).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).The root unchecked exception for all LangChain4j-specific errors.Thrown when the requested model does not exist or is not accessible by the caller (HTTP 404).Indicates a permanent error for which retrying the same request will not help.Thrown when the model provider rejects a request because the caller has exceeded its allowed request or token quota within a time window (HTTP 429).Indicates a transient error that may succeed if the request is retried.Thrown when a request to the model provider does not complete within the configured time limit (HTTP 408 or a client-side read/connect timeout).Indicates that something is wrong with the tool arguments.Indicates that something went wrong while executing the tool.Thrown when the model provider's host cannot be resolved (DNS failure or
UnresolvedAddressException).Thrown when a requested feature is not supported by the current model provider or the specific model being used.