Class LangChain4jException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.langchain4j.exception.LangChain4jException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BlankDocumentException, GuardrailException, HttpException, ModelDisabledException, NonRetriableException, RetriableException, ToolArgumentsException, ToolExecutionException, UnsupportedFeatureException
The root unchecked exception for all LangChain4j-specific errors.
All library exceptions extend this class, making it the single catch point
for callers that need to handle any LangChain4j error uniformly.
For more targeted handling, prefer catching a specific subclass such as
RetriableException or NonRetriableException.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLangChain4jException(String message) LangChain4jException(String message, Throwable cause) LangChain4jException(Throwable cause) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LangChain4jException
-
LangChain4jException
-
LangChain4jException
-