Package dev.langchain4j.exception
package dev.langchain4j.exception
-
Exception ClassesClassDescriptionSignals that an asynchronous SPI method (an
*Asyncmethod, or a reactivePublisher-returning method) is not implemented by a component, and is therefore the internal "this component is not genuinely asynchronous" marker carried by those methods'defaultimplementations.Thrown 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).Thrown when LangChain4j cannot read or write JSON.Thrown when JSON cannot be read: it is malformed, or it does not describe the expected type.Thrown when JSON that carries type information names a type the reader is not allowed to instantiate.Thrown when an object cannot be written as JSON.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 orUnresolvedAddressException).Thrown when a requested feature is not supported by the current model provider or the specific model being used.